Demos (cmake): wgl/sharedtex_mt: Ditto for GetWindowLongPtr.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Nov 10 11:00:42 UTC 2010


Module: Demos
Branch: cmake
Commit: 1bc1cb32a1fd3c05678885b2465317668ace273f
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=1bc1cb32a1fd3c05678885b2465317668ace273f

Author: José Fonseca <jfonseca at vmware.com>
Date:   Wed Nov 10 10:58:20 2010 +0000

wgl/sharedtex_mt: Ditto for GetWindowLongPtr.

---

 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 dae2c53..161b2bb 100644
--- a/src/wgl/sharedtex_mt/sharedtex_mt.c
+++ b/src/wgl/sharedtex_mt/sharedtex_mt.c
@@ -86,7 +86,7 @@ WndProc(HWND hWnd,
       break;
    case WM_SIZE:
       {
-         LONG index = GetWindowLong(hWnd, GWL_USERDATA);
+         LONG_PTR index = GetWindowLongPtr(hWnd, GWLP_USERDATA);
 
          if (index >= 0 && index < MAX_WINDOWS) {
             RECT r;




More information about the mesa-commit mailing list