https://git.reactos.org/?p=reactos.git;a=commitdiff;h=12186bec12fefa343263e…
commit 12186bec12fefa343263e309eda609a08807848e
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sat Aug 15 21:36:42 2020 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sat Aug 15 22:37:42 2020 +0200
[TIMEDATE] Fix a broken function pointer cast.
---
dll/cpl/timedate/internettime.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/cpl/timedate/internettime.c b/dll/cpl/timedate/internettime.c
index 001c25d9949..68cd0b2da3c 100644
--- a/dll/cpl/timedate/internettime.c
+++ b/dll/cpl/timedate/internettime.c
@@ -342,7 +342,7 @@ OnAutoSync(BOOL Sync)
RegCloseKey(hKey);
}
-static DWORD
+static DWORD WINAPI
UpdateThread(
_In_ LPVOID lpParameter)
{
@@ -368,7 +368,7 @@ OnUpdate(
{
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)TRUE);
- if (CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)UpdateThread, (PVOID)hwndDlg,
0, NULL) == NULL)
+ if (CreateThread(NULL, 0, UpdateThread, (PVOID)hwndDlg, 0, NULL) == NULL)
{
UpdateNTPStatus(hwndDlg, GetLastError());
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)FALSE);