Skip to content

Commit

Permalink
Fix WndProc for Win64
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Mar 16, 2012
1 parent fe0dad3 commit c42bc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cbits/WndProc.c
Expand Up @@ -71,7 +71,7 @@ LRESULT CALLBACK genericWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
LRESULT lr; LRESULT lr;


if (hwnd) { if (hwnd) {
LONG wndprocptr = GetWindowLong(hwnd,GWL_USERDATA); LONG_PTR wndprocptr = GetWindowLongPtr(hwnd,GWLP_USERDATA);
if (wndprocptr) { if (wndprocptr) {
lr = ((LRESULT (*)(HWND,UINT,WPARAM,LPARAM))(wndprocptr))(hwnd,msg,wParam,lParam); lr = ((LRESULT (*)(HWND,UINT,WPARAM,LPARAM))(wndprocptr))(hwnd,msg,wParam,lParam);
#if 0 #if 0
Expand Down

0 comments on commit c42bc46

Please sign in to comment.