[GDI32] Fix up GdiFixUpHandle
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 4 Jan 2020 12:58:06 +0000 (13:58 +0100)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 31 Oct 2020 13:24:09 +0000 (14:24 +0100)
win32ss/gdi/gdi32/misc/misc.c

index 04be375..5382c67 100644 (file)
@@ -745,7 +745,7 @@ GdiFixUpHandle(HGDIOBJ hGdiObj)
     Entry = GdiHandleTable + GDI_HANDLE_GET_INDEX(hGdiObj);
 
     /* Rebuild handle for Object */
-    return hGdiObj = (HGDIOBJ)(((LONG_PTR)(hGdiObj)) | (Entry->Type << GDI_ENTRY_UPPER_SHIFT));
+    return (HGDIOBJ)(((ULONG_PTR)(hGdiObj)) | (Entry->Type << GDI_ENTRY_UPPER_SHIFT));
 }
 
 /*