Demos (cmake): wgl/sharedtex_mt: Use SetWindowLongPtr instead of SetWindowLong
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Wed Nov 10 10:44:30 UTC 2010
Module: Demos
Branch: cmake
Commit: 5b96d4e328caecf7b9b61c62d039045c26905ce5
URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=5b96d4e328caecf7b9b61c62d039045c26905ce5
Author: José Fonseca <jfonseca at vmware.com>
Date: Wed Nov 10 10:43:13 2010 +0000
wgl/sharedtex_mt: Use SetWindowLongPtr instead of SetWindowLong
The latter is not available on WIN64.
---
src/wgl/sharedtex_mt/sharedtex_mt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/wgl/sharedtex_mt/sharedtex_mt.c b/src/wgl/sharedtex_mt/sharedtex_mt.c
index 779e150..dae2c53 100644
--- a/src/wgl/sharedtex_mt/sharedtex_mt.c
+++ b/src/wgl/sharedtex_mt/sharedtex_mt.c
@@ -100,7 +100,7 @@ WndProc(HWND hWnd,
{
CREATESTRUCT *pcs = (CREATESTRUCT *) lParam;
- SetWindowLong(hWnd, GWL_USERDATA, (LONG) pcs->lpCreateParams);
+ SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR) pcs->lpCreateParams);
}
break;
case WM_DESTROY:
More information about the mesa-commit
mailing list