https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cef57d3c4428899289b9855dc48fc9ae35f0839d

commit cef57d3c4428899289b9855dc48fc9ae35f0839d
Author:     Timo Kreuzer <[email protected]>
AuthorDate: Sat Jan 4 13:58:06 2020 +0100
Commit:     Timo Kreuzer <[email protected]>
CommitDate: Sat Oct 31 14:24:09 2020 +0100

    [GDI32] Fix up GdiFixUpHandle
---
 win32ss/gdi/gdi32/misc/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/win32ss/gdi/gdi32/misc/misc.c b/win32ss/gdi/gdi32/misc/misc.c
index 04be375853f..5382c67aab0 100644
--- a/win32ss/gdi/gdi32/misc/misc.c
+++ b/win32ss/gdi/gdi32/misc/misc.c
@@ -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));
 }
 
 /*

Reply via email to