user32/tests: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-03-15 08:00:39 +01:00 committed by Alexandre Julliard
parent abfda01f74
commit 5cc3167b94
1 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#undef WINE_NO_LONG_TYPES /* temporary for migration */
#define WINE_NO_INLINE_RECT #define WINE_NO_INLINE_RECT
#include "wine/test.h" #include "wine/test.h"
@ -46,7 +47,7 @@ static void test_FillRect(void)
oldhbmp = SelectObject(hdcmem, hbmp); oldhbmp = SelectObject(hdcmem, hbmp);
ok(oldhbmp != NULL, "SelectObject returned NULL\n"); /* a memdc always has a bitmap selected */ ok(oldhbmp != NULL, "SelectObject returned NULL\n"); /* a memdc always has a bitmap selected */
col = GetPixel(hdcmem, 0, 0); col = GetPixel(hdcmem, 0, 0);
ok( col == 0xffffff, "GetPixel returned %08x, expected 0xffffff\n", col); ok( col == 0xffffff, "GetPixel returned %08lx, expected 0xffffff\n", col);
/* select black brush */ /* select black brush */
old_brush = SelectObject(hdcmem, GetStockObject(BLACK_BRUSH)); old_brush = SelectObject(hdcmem, GetStockObject(BLACK_BRUSH));
@ -55,7 +56,7 @@ static void test_FillRect(void)
SelectObject(hdcmem, old_brush); SelectObject(hdcmem, old_brush);
/* bitmap filled with last selected brush */ /* bitmap filled with last selected brush */
col = GetPixel(hdcmem, 0, 0); col = GetPixel(hdcmem, 0, 0);
ok(col == 0, "GetPixel returned %08x, expected 0\n", col); ok(col == 0, "GetPixel returned %08lx, expected 0\n", col);
SelectObject(hdcmem, oldhbmp); SelectObject(hdcmem, oldhbmp);
DeleteObject(hbmp); DeleteObject(hbmp);