diff --git a/modules/rostests/apitests/user32/LoadImage.c b/modules/rostests/apitests/user32/LoadImage.c index 8a2aa56f57b..447e778990a 100644 --- a/modules/rostests/apitests/user32/LoadImage.c +++ b/modules/rostests/apitests/user32/LoadImage.c @@ -87,6 +87,9 @@ START_TEST(LoadImage) PROCESS_INFORMATION pi; STARTUPINFO si; HANDLE handle; + HDC hdc; + HBITMAP hBmp; + BITMAP bitmap; char **test_argv; int argc = winetest_get_mainargs( &test_argv ); @@ -171,4 +174,11 @@ START_TEST(LoadImage) WaitForSingleObject (pi.hProcess, INFINITE); test_LoadIcon_SystemIds(); + + hdc = CreateCompatibleDC(NULL); + hBmp = (HBITMAP)LoadImageW(GetModuleHandle(NULL), MAKEINTRESOURCEW(100), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); + SelectObject(hdc, hBmp); + GetObject(hBmp, sizeof(BITMAP), &bitmap); + ok(bitmap.bmBitsPixel == 1, "Should have been '1', but got %d\n", bitmap.bmBitsPixel); + } diff --git a/modules/rostests/apitests/user32/bpp.bmp b/modules/rostests/apitests/user32/bpp.bmp new file mode 100644 index 00000000000..99a0296942c Binary files /dev/null and b/modules/rostests/apitests/user32/bpp.bmp differ diff --git a/modules/rostests/apitests/user32/resource.h b/modules/rostests/apitests/user32/resource.h index 87412d3cdb5..f1bdb44b3e1 100644 --- a/modules/rostests/apitests/user32/resource.h +++ b/modules/rostests/apitests/user32/resource.h @@ -1,4 +1,5 @@ +#define BPP_TEST 100 #define IDI_TEST 1000 #define IDR_ICONS_PNG 2000 diff --git a/modules/rostests/apitests/user32/user32_apitest.rc b/modules/rostests/apitests/user32/user32_apitest.rc index 6279d19db16..aaafea371ac 100644 --- a/modules/rostests/apitests/user32/user32_apitest.rc +++ b/modules/rostests/apitests/user32/user32_apitest.rc @@ -6,6 +6,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDI_TEST ICON "test.ico" +BPP_TEST BITMAP "bpp.bmp" TESTCURSOR CURSOR "test.cur" IDR_ICONS_PNG RCDATA "ROS.ico" diff --git a/modules/rostests/apitests/user32/bpp.bmp b/modules/rostests/apitests/user32/bpp.bmp new file mode 100644 index 0000000000000000000000000000000000000000..99a0296942cdb583264fbff89ae0008578340528 GIT binary patch literal 112 wcmZ?r-Npa`c0fu4h*_YRk%18`VE`nL@If$G07(4*{~yep03;Kj7{n$F06Gi^X8-^I literal 0 HcmV?d00001