Module: wine Branch: master Commit: 4161f5120b59d916e1818748f0d0ced7c7a76303 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4161f5120b59d916e1818748f0...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Thu Apr 7 23:36:03 2016 +0300
gdi32: Increase first gdi handle value.
Due to 32->16bit handle truncation low enough handle values could be misinterpreted as stock brushes indices in FillRect().
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/gdi32/gdiobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/gdi32/gdiobj.c b/dlls/gdi32/gdiobj.c index e861f24..237544d 100644 --- a/dlls/gdi32/gdiobj.c +++ b/dlls/gdi32/gdiobj.c @@ -38,7 +38,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(gdi);
-#define FIRST_GDI_HANDLE 16 +#define FIRST_GDI_HANDLE 32 #define MAX_GDI_HANDLES 16384
struct hdc_list