mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 00:43:21 +00:00
Add a check to stop a possible bug.
svn path=/trunk/; revision=21212
This commit is contained in:
parent
018e66e64d
commit
cff26aaf48
|
@ -574,7 +574,7 @@ CreateNTPServerList(HWND hwnd)
|
|||
DWORD Index = 0;
|
||||
DWORD ValSize;
|
||||
DWORD dwNameSize;
|
||||
DWORD Default = 0;
|
||||
DWORD Default = 1;
|
||||
LONG Ret;
|
||||
HKEY hKey;
|
||||
|
||||
|
@ -618,6 +618,9 @@ CreateNTPServerList(HWND hwnd)
|
|||
break;
|
||||
}
|
||||
|
||||
if (Default < 1 || Default > Index)
|
||||
Default = 1;
|
||||
|
||||
SendMessage(hList, CB_SETCURSEL, --Default, 0);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue