OSDN Git Service

Fix 64-bit pointer truncation in SetWindowLongPtr call
authorKimmo Varis <kimmov@gmail.com>
Wed, 20 Sep 2006 20:12:10 +0000 (20:12 +0000)
committerKimmo Varis <kimmov@gmail.com>
Wed, 20 Sep 2006 20:12:10 +0000 (20:12 +0000)
Src/Changes.txt
Src/ChildFrm.cpp

index a0d1968..fb91828 100644 (file)
@@ -17,6 +17,8 @@ Add new items to top.
   Src: Merge.cpp
  Fix hex number used instead of INVALID_HANDLE_VALUE
   Src/Common: sinstance.cpp
+ Fix 64-bit pointer truncation in SetWindowLongPtr call
+  Src: ChildFrm.cpp
 
 2006-09-19 Kimmo
  PATCH: [ 1561001 ] Fix FileActionScript type in running actions
index 3b8f5d9..9cb8f8c 100644 (file)
@@ -373,7 +373,7 @@ static BOOL MyUnlockWindowUpdate(HWND hwnd)
 {
        WNDPROC pfnOldWndProc = (WNDPROC)RemoveProp(hwnd, _T("OldWndProc"));
        if (pfnOldWndProc)
-               SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG)pfnOldWndProc);
+               SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR)pfnOldWndProc);
 
        EnumChildWindows(hwnd, EnumChildProc, TRUE);