diff --git a/loader/win32.c b/loader/win32.c index 7dfa8e7844..859bf10eae 100644 --- a/loader/win32.c +++ b/loader/win32.c @@ -2666,7 +2666,7 @@ static int WINAPI expGetWindowThreadProcessId(HWND win, int *pid_data) dbgprintf("GetWindowThreadProcessId(0x%x, 0x%x) => %d\n", win, pid_data, tid); if (pid_data) - (int)*pid_data = tid; + *(int*)pid_data = tid; return tid; }