Remove stray semicolon, change indentation.

svn path=/trunk/; revision=37918
This commit is contained in:
Dmitry Gorbachev 2008-12-07 21:49:30 +00:00
parent 309ea97e6c
commit 2772b79efd

View file

@ -71,15 +71,16 @@ InitRadioButtons(HWND hWnd)
{
HKEY hKey;
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\Display"),
if (RegOpenKeyEx(HKEY_CURRENT_USER,
_T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\Display"),
0, KEY_READ, &hKey) == ERROR_SUCCESS)
{
TCHAR szBuf[64];
DWORD dwSize = 64;
if (RegQueryValueEx(hKey, _T("DynaSettingsChange"), 0, NULL,
(LPBYTE)szBuf, &dwSize) == ERROR_SUCCESS);
(LPBYTE)szBuf, &dwSize) == ERROR_SUCCESS)
{
switch (_ttoi(szBuf))
{
case 0:
@ -92,6 +93,7 @@ InitRadioButtons(HWND hWnd)
SendDlgItemMessage(hWnd, IDC_ASKME_RB, BM_SETCHECK, 1, 1);
break;
}
}
RegCloseKey(hKey);
}