static DWORD log2 (DWORD dwValue)
{
- for (DWORD dwLog = 0; (DWORD)(1<<dwLog) < dwValue; ++dwLog)
+ DWORD dwLog;
+ for (dwLog = 0; (DWORD)(1<<dwLog) < dwValue; ++dwLog)
;
return dwLog;
}
{
Config_WriteUserNum (TEXT("ShowTrayIcon"), fFlag);
- for (HWND hSearch = GetWindow (GetDesktopWindow(), GW_CHILD);
+ HWND hSearch;
+ for (hSearch = GetWindow (GetDesktopWindow(), GW_CHILD);
hSearch && IsWindow(hSearch);
hSearch = GetWindow (hSearch, GW_HWNDNEXT))
{
if (pPrefs)
{
size_t cChanged = 0;
- for (size_t ii = 0; ii < pPrefs->cPrefs; ++ii)
+ size_t ii;
+ for (ii = 0; ii < pPrefs->cPrefs; ++ii)
{
if (pPrefs->aPrefs[ ii ].fChanged)
++cChanged;