mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
Add a check to stop a possible bug.
svn path=/trunk/; revision=21212
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user