wgl: Use SetWindowLongPtr.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Mar 2009 21:00:59 +0000 (21:00 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Mar 2009 21:01:49 +0000 (21:01 +0000)
src/gallium/state_trackers/wgl/shared/stw_framebuffer.c

index 17c96c411f709df4f09d6c3f6ee0ae8a233c85d5..024c9ad36af01044719b9762b26fbf028576f878 100644 (file)
@@ -167,10 +167,10 @@ framebuffer_create(
     */
    fb->hWnd = WindowFromDC( hdc );
    if (fb->hWnd != NULL) {
-      fb->WndProc = (WNDPROC) SetWindowLong(
+      fb->WndProc = (WNDPROC) SetWindowLongPtr(
          fb->hWnd,
-         GWL_WNDPROC,
-         (LONG) window_proc );
+         GWLP_WNDPROC,
+         (LONG_PTR) window_proc );
    }
 
    fb->next = fb_head;
@@ -188,10 +188,10 @@ framebuffer_destroy(
    while (pfb != NULL) {
       if (pfb == fb) {
          if (fb->hWnd != NULL) {
-            SetWindowLong(
+            SetWindowLongPtr(
                fb->hWnd,
-               GWL_WNDPROC,
-               (LONG) fb->WndProc );
+               GWLP_WNDPROC,
+               (LONG_PTR) fb->WndProc );
          }
 
          *link = fb->next;