From 8e23820aa6c92883ccbe3e0cfdff2cef7ccf6468 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 13 May 2007 00:57:09 +0000 Subject: [PATCH] On win XP the gdi handle index can be > 0x3fff, so change GDI_HANDLE_INDEX_MASK to 0x0000ffff to not fail on win XP on higher handle index. svn path=/trunk/; revision=26742 --- rostests/win32/gdi32/gditest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rostests/win32/gdi32/gditest.h b/rostests/win32/gdi32/gditest.h index f472073465b..d8c2f5acf6b 100644 --- a/rostests/win32/gdi32/gditest.h +++ b/rostests/win32/gdi32/gditest.h @@ -19,7 +19,7 @@ printf("Test failed in %s:%d (%s)\n", __FILE__, __LINE__, #x);\ }; -#define GDI_HANDLE_INDEX_MASK 0x00003fff // (GDI_HANDLE_COUNT - 1) +#define GDI_HANDLE_INDEX_MASK 0x0000ffff // (GDI_HANDLE_COUNT - 1) #define GDI_HANDLE_TYPE_MASK 0x007f0000 #define GDI_HANDLE_STOCK_MASK 0x00800000 #define GDI_HANDLE_REUSE_MASK 0xff000000