[Bf-blender-cvs] [df2fa56] soc-2014-viewport_context: fix for 64-bit windows

Jason Wilkins noreply at git.blender.org
Sun Jul 27 18:45:54 CEST 2014


Commit: df2fa56861e9be2bc26d492d5deb526332707727
Author: Jason Wilkins
Date:   Sun Jul 27 11:30:24 2014 -0500
Branches: soc-2014-viewport_context
https://developer.blender.org/rBdf2fa56861e9be2bc26d492d5deb526332707727

fix for 64-bit windows

===================================================================

M	intern/ghost/intern/GHOST_ContextWGL.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_ContextWGL.cpp b/intern/ghost/intern/GHOST_ContextWGL.cpp
index 27cd946..f5370cf 100644
--- a/intern/ghost/intern/GHOST_ContextWGL.cpp
+++ b/intern/ghost/intern/GHOST_ContextWGL.cpp
@@ -287,13 +287,13 @@ static HWND clone_window(HWND hWnd, LPVOID lpParam)
 	GetWindowRect(hWnd, &rect);
 	WIN32_CHK(GetLastError() == NO_ERROR);
 
-	HWND hWndParent = (HWND)GetWindowLong(hWnd, GWL_HWNDPARENT);
+	HWND hWndParent = (HWND)GetWindowLongPtr(hWnd, GWLP_HWNDPARENT);
 	WIN32_CHK(GetLastError() == NO_ERROR);
 
 	HMENU hMenu = GetMenu(hWnd);
 	WIN32_CHK(GetLastError() == NO_ERROR);
 
-	HINSTANCE hInstance = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE);
+	HINSTANCE hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);
 	WIN32_CHK(GetLastError() == NO_ERROR);
 
 	HWND hwndCloned = CreateWindowExW(




More information about the Bf-blender-cvs mailing list