projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
018e66e
)
Add a check to stop a possible bug.
author
Ged Murphy
<gedmurphy@reactos.org>
Sun, 26 Feb 2006 23:18:36 +0000
(23:18 +0000)
committer
Ged Murphy
<gedmurphy@reactos.org>
Sun, 26 Feb 2006 23:18:36 +0000
(23:18 +0000)
svn path=/trunk/; revision=21212
reactos/dll/cpl/timedate/timedate.c
patch
|
blob
|
history
diff --git
a/reactos/dll/cpl/timedate/timedate.c
b/reactos/dll/cpl/timedate/timedate.c
index
4654a4f
..
e744910
100644
(file)
--- a/
reactos/dll/cpl/timedate/timedate.c
+++ b/
reactos/dll/cpl/timedate/timedate.c
@@
-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);
}