summarylogtreecommitdiffstats
path: root/GWLP_USERDATA.patch
blob: 8d1ef9b1758d9627d46b1a47be248eea6430d1fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- silc-toolkit-1.1.12.old/lib/silcutil/win32/silcwin32schedule.c	2014-05-13 10:20:17.000000000 +0400
+++ silc-toolkit-1.1.12/lib/silcutil/win32/silcwin32schedule.c	2021-12-07 00:12:05.363374849 +0300
@@ -130,7 +130,7 @@
 static LRESULT CALLBACK
 silc_schedule_wnd_proc(HWND hwnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
 {
-  SilcSchedule schedule = (SilcSchedule)GetWindowLongPtr(hwnd, GWL_USERDATA);
+  SilcSchedule schedule = (SilcSchedule)GetWindowLongPtr(hwnd, GWLP_USERDATA);
   SilcWin32Scheduler internal;
   SilcUInt32 fd;
   SilcTaskFd task;
@@ -268,7 +268,7 @@
   }
 
   /* Set the scheduler as the window's context */
-  SetWindowLongPtr(internal->window, GWL_USERDATA, (void *)schedule);
+  SetWindowLongPtr(internal->window, GWLP_USERDATA, (void *)schedule);
   SetWindowPos(internal->window, HWND_BOTTOM, 0, 0, 0, 0, SWP_FRAMECHANGED);
 
   internal->wakeup_sema = CreateSemaphore(NULL, 0, 100, NULL);