Hugh Gibson - 2004-02-19

Logged In: YES
user_id=732318

The bug is in CUserCfg::LoadUserCfg. See the following lines:

dwSize = sizeof(m_nEditorTabWidth);
RegQueryValueEx(hRegKey, REGVAL_TABWIDTH, 0,
&dwType, (unsigned char*)&m_nEditorTabWidth, &dwSize);

dwSize = sizeof(m_bUseTabs);
RegQueryValueEx(hRegKey, REGVAL_USETABS, 0, &dwType,
(unsigned char*)&m_bUseTabs, &dwSize);

In the old code the sizeof calls were swapped. I've rebuilt
with this fix and it works fine now.