[GDI32] Fix bDDCreateSurface
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 13 Jan 2019 14:09:57 +0000 (15:09 +0100)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 4 Mar 2019 20:58:42 +0000 (21:58 +0100)
win32ss/gdi/gdi32/misc/gdientry.c

index 61943bf..dffa8ab 100644 (file)
@@ -1409,7 +1409,7 @@ bDDCreateSurface(LPDDRAWI_DDRAWSURFACE_LCL pSurface,
     RtlMoveMemory(&SurfaceMore.ddsCapsEx,
                   &pSurface->ddckCKDestBlt,
                   sizeof(DDSCAPSEX));
-    SurfaceMore.dwSurfaceHandle = (DWORD)pSurface->dbnOverlayNode.object_int->lpVtbl;
+    SurfaceMore.dwSurfaceHandle = pSurface->lpSurfMore->dwSurfaceHandle;
 
     /* Set up SurfaceGlobal struct */
     SurfaceGlobal.fpVidMem = pSurface->lpGbl->fpVidMem;