[CHARMAP]

- remove dead code
CID 1237028

[SETUPAPI]
- fix swapped arguments
CID 1237062

svn path=/trunk/; revision=64546
This commit is contained in:
Kamil Hornicek 2014-10-05 14:55:15 +00:00
parent 5550a89326
commit 6b033493e6
2 changed files with 3 additions and 2 deletions

View file

@ -90,8 +90,9 @@ extern void LoadSettings(void)
}
RegQueryValueEx(hKey, _T("Advanced"), NULL, &type, (LPBYTE)&dwAdvanChecked, &size);
if(dwAdvanChecked == TRUE)
SendDlgItemMessage(hCharmapDlg, IDC_CHECK_ADVANCED, BM_CLICK, (dwAdvanChecked ? MF_CHECKED : MF_UNCHECKED), 0);
SendDlgItemMessage(hCharmapDlg, IDC_CHECK_ADVANCED, BM_CLICK, MF_CHECKED, 0);
RegCloseKey(hKey);
}

View file

@ -1090,7 +1090,7 @@ pSetupCenterWindowRelativeToParent(HWND hwnd)
posX = ((nOwnerWidth - nWindowWidth) / 2) + ptOrigin.x;
posY = ((nOwnerHeight - nWindowHeight) / 2) + ptOrigin.y;
MoveWindow(hwnd, posX, posY, nWindowHeight, nWindowWidth, 0);
MoveWindow(hwnd, posX, posY, nWindowWidth, nWindowHeight, 0);
}