projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[TIMEDATE] Avoid the use of DisplayWin32Error in time sync utility functions. CORE...
[reactos.git]
/
dll
/
cpl
/
timedate
/
internettime.c
diff --git
a/dll/cpl/timedate/internettime.c
b/dll/cpl/timedate/internettime.c
index
5a419e4
..
7c97184
100644
(file)
--- a/
dll/cpl/timedate/internettime.c
+++ b/
dll/cpl/timedate/internettime.c
@@
-204,8
+204,15
@@
InetTimePageProc(HWND hwndDlg,
{
case IDC_UPDATEBUTTON:
{
+ DWORD dwError;
+
SetNTPServer(hwndDlg);
- SyncTimeNow();
+
+ dwError = SyncTimeNow();
+ if (dwError != ERROR_SUCCESS)
+ {
+ DisplayWin32Error(dwError);
+ }
}
break;