Permalink
Browse files

Fix WndProc for Win64

  • Loading branch information...
1 parent fe0dad3 commit c42bc462affa50d5cee5a4cfdd1d872088f32a4c @igfoo igfoo committed Mar 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cbits/WndProc.c
View
@@ -71,7 +71,7 @@ LRESULT CALLBACK genericWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
LRESULT lr;
if (hwnd) {
- LONG wndprocptr = GetWindowLong(hwnd,GWL_USERDATA);
+ LONG_PTR wndprocptr = GetWindowLongPtr(hwnd,GWLP_USERDATA);
if (wndprocptr) {
lr = ((LRESULT (*)(HWND,UINT,WPARAM,LPARAM))(wndprocptr))(hwnd,msg,wParam,lParam);
#if 0

0 comments on commit c42bc46

Please sign in to comment.