Signed-off-by: Andrey Gusev andrey.goosev@gmail.com --- dlls/gdi32/tests/bitmap.c | 23 ++++++++++++++++++++++- dlls/gdi32/tests/brush.c | 7 +++++++ 2 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c index a4002c83b5..aa833e3a63 100644 --- a/dlls/gdi32/tests/bitmap.c +++ b/dlls/gdi32/tests/bitmap.c @@ -143,8 +143,10 @@ static void test_createdibitmap(void)
hbm = CreateDIBitmap(hdc, NULL, CBM_INIT, NULL, NULL, 0); ok(hbm == NULL, "CreateDIBitmap should fail\n"); + DeleteObject(hbm); hbm = CreateDIBitmap(hdc, NULL, 0, NULL, NULL, 0); ok(hbm == NULL, "CreateDIBitmap should fail\n"); + DeleteObject(hbm);
/* First create an un-initialised bitmap. The depth of the bitmap should match that of the hdc and not that supplied in bmih. @@ -472,11 +474,13 @@ static void test_dibsections(void) bits = (BYTE*)0xdeadbeef; hdib = CreateDIBSection(hdc, NULL, DIB_RGB_COLORS, (void**)&bits, NULL, 0); ok(hdib == NULL && bits == NULL, "CreateDIBSection failed for invalid parameter: bmi == 0x0\n"); + DeleteObject(hdib);
hdib = CreateDIBSection(hdc, pbmi, DIB_RGB_COLORS, (void**)&bits, NULL, 0); ok(hdib != NULL, "CreateDIBSection error %d\n", GetLastError()); ok(GetObjectW(hdib, sizeof(DIBSECTION), &dibsec) != 0, "GetObject failed for DIBSection\n"); ok(dibsec.dsBm.bmBits == bits, "dibsec.dsBits %p != bits %p\n", dibsec.dsBm.bmBits, bits); + DeleteObject(hdib);
/* test the DIB memory */ ok(VirtualQuery(bits, &info, sizeof(info)) == sizeof(info), @@ -492,7 +496,6 @@ static void test_dibsections(void) test_dib_bits_access( hdib, bits );
test_dib_info(hdib, bits, &pbmi->bmiHeader); - DeleteObject(hdib);
/* Test a top-down DIB. */ pbmi->bmiHeader.biHeight = -100; @@ -508,6 +511,7 @@ static void test_dibsections(void) hdib = CreateDIBSection(hdc, pbmi, DIB_RGB_COLORS, (void**)&bits, NULL, 0); ok(hdib == NULL, "CreateDIBSection should fail when asked to create a compressed DIB section\n"); ok(GetLastError() == 0xdeadbeef, "wrong error %d\n", GetLastError()); + DeleteObject(hdib);
pbmi->bmiHeader.biBitCount = 16; pbmi->bmiHeader.biCompression = BI_BITFIELDS; @@ -1079,6 +1083,7 @@ static void test_dib_formats(void)
hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with null bitfields\n" ); + DeleteObject( hdib ); ret = SetDIBits(hdc, hbmp, 0, 1, data, bi, DIB_RGB_COLORS); ok( !ret, "SetDIBits succeeded with null bitfields\n" ); /* other functions don't check */ @@ -1107,6 +1112,7 @@ static void test_dib_formats(void) *(DWORD *)&bi->bmiColors[2] = 7; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with null bitfields\n" ); + DeleteObject( hdib ); ret = SetDIBits(hdc, hbmp, 0, 1, data, bi, DIB_RGB_COLORS); ok( !ret, "SetDIBits succeeded with null bitfields\n" );
@@ -1126,8 +1132,10 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with negative width\n" ); + DeleteObject( hdib ); hdib = CreateDIBitmap( hdc, &bi->bmiHeader, 0, bits, bi, DIB_RGB_COLORS ); ok( hdib == NULL, "CreateDIBitmap succeeded with negative width\n" ); + DeleteObject( hdib ); ret = SetDIBits(hdc, hbmp, 0, 1, data, bi, DIB_RGB_COLORS); ok( !ret, "SetDIBits succeeded with negative width\n" ); ret = SetDIBitsToDevice( memdc, 0, 0, 1, 1, 0, 0, 0, 1, data, bi, DIB_RGB_COLORS ); @@ -1149,6 +1157,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with zero width\n" ); + DeleteObject( hdib ); hdib = CreateDIBitmap( hdc, &bi->bmiHeader, 0, bits, bi, DIB_RGB_COLORS ); ok( hdib != NULL, "CreateDIBitmap failed with zero width\n" ); DeleteObject( hdib ); @@ -1173,6 +1182,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with zero height\n" ); + DeleteObject( hdib ); hdib = CreateDIBitmap( hdc, &bi->bmiHeader, 0, bits, bi, DIB_RGB_COLORS ); ok( hdib != NULL, "CreateDIBitmap failed with zero height\n" ); DeleteObject( hdib ); @@ -1199,6 +1209,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_PAL_COLORS+1, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with DIB_PAL_COLORS+1\n" ); + DeleteObject( hdib ); hdib = CreateDIBitmap( hdc, &bi->bmiHeader, 0, bits, bi, DIB_PAL_COLORS+1 ); ok( hdib != NULL, "CreateDIBitmap failed with DIB_PAL_COLORS+1\n" ); DeleteObject( hdib ); @@ -1223,6 +1234,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_PAL_COLORS+2, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with DIB_PAL_COLORS+2\n" ); + DeleteObject( hdib ); hdib = CreateDIBitmap( hdc, &bi->bmiHeader, 0, bits, bi, DIB_PAL_COLORS+2 ); ok( hdib == NULL, "CreateDIBitmap succeeded with DIB_PAL_COLORS+2\n" ); DeleteObject( hdib ); @@ -1255,6 +1267,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with size overflow\n" ); + DeleteObject( hdib );
bi->bmiHeader.biWidth = 1; bi->bmiHeader.biHeight = 0x40000001; @@ -1262,6 +1275,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with size overflow\n" ); + DeleteObject( hdib );
bi->bmiHeader.biWidth = 2; bi->bmiHeader.biHeight = 0x40000001; @@ -1269,6 +1283,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with size overflow\n" ); + DeleteObject( hdib );
bi->bmiHeader.biWidth = 0x40000001; bi->bmiHeader.biHeight = 1; @@ -1276,6 +1291,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with size overflow\n" ); + DeleteObject( hdib );
bi->bmiHeader.biWidth = 0x40000001; bi->bmiHeader.biHeight = 4; @@ -1283,6 +1299,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with size overflow\n" ); + DeleteObject( hdib );
DeleteDC( memdc ); DeleteObject( hbmp ); @@ -2615,6 +2632,7 @@ static void test_GetDIBits_BI_BITFIELDS(void) dibinfo->bmiHeader.biClrImportant = 0; hbm = CreateDIBSection( hdc, dibinfo, DIB_RGB_COLORS, &ptr, NULL, 0 ); ok( hbm == 0, "creating 24-bpp BI_BITFIELDS dibsection should fail\n" ); + DeleteObject( hbm ); dibinfo->bmiHeader.biCompression = BI_RGB; hbm = CreateDIBSection( hdc, dibinfo, DIB_RGB_COLORS, &ptr, NULL, 0 ); ok( hbm != 0, "failed to create bitmap\n" ); @@ -2876,6 +2894,7 @@ static void test_bitmapinfoheadersize(void)
hdib = CreateDIBSection(hdc, &bmi, 0, NULL, NULL, 0); ok(hdib == NULL, "CreateDIBSection succeeded\n"); + DeleteObject(hdib);
bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
@@ -2937,6 +2956,7 @@ static void test_bitmapinfoheadersize(void)
hdib = CreateDIBSection(hdc, (BITMAPINFO *)&bci, 0, NULL, NULL, 0); ok(hdib == NULL, "CreateDIBSection succeeded\n"); + DeleteObject(hdib);
bci.bmciHeader.bcSize = sizeof(BITMAPCOREHEADER);
@@ -2949,6 +2969,7 @@ static void test_bitmapinfoheadersize(void)
hdib = CreateDIBSection(hdc, (BITMAPINFO *)&bci, 0, NULL, NULL, 0); ok(hdib == NULL, "CreateDIBSection succeeded\n"); + DeleteObject(hdib);
bci.bmciHeader.bcSize = sizeof(BITMAPCOREINFO);
diff --git a/dlls/gdi32/tests/brush.c b/dlls/gdi32/tests/brush.c index 1a10429c05..ec5819f042 100644 --- a/dlls/gdi32/tests/brush.c +++ b/dlls/gdi32/tests/brush.c @@ -237,36 +237,43 @@ static void test_pattern_brush(void) DeleteObject( brush ); brush = CreateDIBPatternBrushPt( info, DIB_PAL_COLORS + 2 ); ok( !brush, "CreateDIBPatternBrushPt succeeded\n" ); + DeleteObject( brush ); brush = CreateDIBPatternBrushPt( info, DIB_PAL_COLORS + 3 ); ok( !brush, "CreateDIBPatternBrushPt succeeded\n" ); + DeleteObject( brush );
info->bmiHeader.biBitCount = 8; info->bmiHeader.biCompression = BI_RLE8; brush = CreateDIBPatternBrushPt( info, DIB_RGB_COLORS ); ok( !brush, "CreateDIBPatternBrushPt succeeded\n" ); + DeleteObject( brush );
info->bmiHeader.biBitCount = 4; info->bmiHeader.biCompression = BI_RLE4; brush = CreateDIBPatternBrushPt( info, DIB_RGB_COLORS ); ok( !brush, "CreateDIBPatternBrushPt succeeded\n" ); + DeleteObject( brush );
br.lbStyle = BS_DIBPATTERN8X8; br.lbColor = DIB_RGB_COLORS; br.lbHatch = (ULONG_PTR)mem; brush = CreateBrushIndirect( &br ); ok( !brush, "CreatePatternBrush succeeded\n" ); + DeleteObject( brush );
br.lbStyle = BS_MONOPATTERN; br.lbColor = DIB_RGB_COLORS; br.lbHatch = (ULONG_PTR)mem; brush = CreateBrushIndirect( &br ); ok( !brush, "CreatePatternBrush succeeded\n" ); + DeleteObject( brush );
br.lbStyle = BS_INDEXED; br.lbColor = DIB_RGB_COLORS; br.lbHatch = (ULONG_PTR)mem; brush = CreateBrushIndirect( &br ); ok( !brush, "CreatePatternBrush succeeded\n" ); + DeleteObject( brush );
GlobalFree( mem ); }
On 1/2/2018 6:43 PM, Andrey Gusev wrote:
Signed-off-by: Andrey Gusev andrey.goosev@gmail.com
dlls/gdi32/tests/bitmap.c | 23 ++++++++++++++++++++++- dlls/gdi32/tests/brush.c | 7 +++++++ 2 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c index a4002c83b5..aa833e3a63 100644 --- a/dlls/gdi32/tests/bitmap.c +++ b/dlls/gdi32/tests/bitmap.c @@ -143,8 +143,10 @@ static void test_createdibitmap(void)
hbm = CreateDIBitmap(hdc, NULL, CBM_INIT, NULL, NULL, 0); ok(hbm == NULL, "CreateDIBitmap should fail\n");
DeleteObject(hbm); hbm = CreateDIBitmap(hdc, NULL, 0, NULL, NULL, 0); ok(hbm == NULL, "CreateDIBitmap should fail\n");
DeleteObject(hbm);
/* First create an un-initialised bitmap. The depth of the bitmap should match that of the hdc and not that supplied in bmih.
@@ -472,11 +474,13 @@ static void test_dibsections(void) bits = (BYTE*)0xdeadbeef; hdib = CreateDIBSection(hdc, NULL, DIB_RGB_COLORS, (void**)&bits, NULL, 0); ok(hdib == NULL && bits == NULL, "CreateDIBSection failed for invalid parameter: bmi == 0x0\n");
DeleteObject(hdib);
hdib = CreateDIBSection(hdc, pbmi, DIB_RGB_COLORS, (void**)&bits, NULL, 0); ok(hdib != NULL, "CreateDIBSection error %d\n", GetLastError()); ok(GetObjectW(hdib, sizeof(DIBSECTION), &dibsec) != 0, "GetObject failed for DIBSection\n"); ok(dibsec.dsBm.bmBits == bits, "dibsec.dsBits %p != bits %p\n", dibsec.dsBm.bmBits, bits);
DeleteObject(hdib);
/* test the DIB memory */ ok(VirtualQuery(bits, &info, sizeof(info)) == sizeof(info),
@@ -492,7 +496,6 @@ static void test_dibsections(void) test_dib_bits_access( hdib, bits );
test_dib_info(hdib, bits, &pbmi->bmiHeader);
DeleteObject(hdib);
/* Test a top-down DIB. */ pbmi->bmiHeader.biHeight = -100;
@@ -508,6 +511,7 @@ static void test_dibsections(void) hdib = CreateDIBSection(hdc, pbmi, DIB_RGB_COLORS, (void**)&bits, NULL, 0); ok(hdib == NULL, "CreateDIBSection should fail when asked to create a compressed DIB section\n"); ok(GetLastError() == 0xdeadbeef, "wrong error %d\n", GetLastError());
DeleteObject(hdib);
pbmi->bmiHeader.biBitCount = 16; pbmi->bmiHeader.biCompression = BI_BITFIELDS;
@@ -1079,6 +1083,7 @@ static void test_dib_formats(void)
hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with null bitfields\n" );
- DeleteObject( hdib ); ret = SetDIBits(hdc, hbmp, 0, 1, data, bi, DIB_RGB_COLORS); ok( !ret, "SetDIBits succeeded with null bitfields\n" ); /* other functions don't check */
@@ -1107,6 +1112,7 @@ static void test_dib_formats(void) *(DWORD *)&bi->bmiColors[2] = 7; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with null bitfields\n" );
- DeleteObject( hdib ); ret = SetDIBits(hdc, hbmp, 0, 1, data, bi, DIB_RGB_COLORS); ok( !ret, "SetDIBits succeeded with null bitfields\n" );
@@ -1126,8 +1132,10 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with negative width\n" );
- DeleteObject( hdib ); hdib = CreateDIBitmap( hdc, &bi->bmiHeader, 0, bits, bi, DIB_RGB_COLORS ); ok( hdib == NULL, "CreateDIBitmap succeeded with negative width\n" );
- DeleteObject( hdib ); ret = SetDIBits(hdc, hbmp, 0, 1, data, bi, DIB_RGB_COLORS); ok( !ret, "SetDIBits succeeded with negative width\n" ); ret = SetDIBitsToDevice( memdc, 0, 0, 1, 1, 0, 0, 0, 1, data, bi, DIB_RGB_COLORS );
@@ -1149,6 +1157,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with zero width\n" );
- DeleteObject( hdib ); hdib = CreateDIBitmap( hdc, &bi->bmiHeader, 0, bits, bi, DIB_RGB_COLORS ); ok( hdib != NULL, "CreateDIBitmap failed with zero width\n" ); DeleteObject( hdib );
@@ -1173,6 +1182,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with zero height\n" );
- DeleteObject( hdib ); hdib = CreateDIBitmap( hdc, &bi->bmiHeader, 0, bits, bi, DIB_RGB_COLORS ); ok( hdib != NULL, "CreateDIBitmap failed with zero height\n" ); DeleteObject( hdib );
@@ -1199,6 +1209,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_PAL_COLORS+1, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with DIB_PAL_COLORS+1\n" );
- DeleteObject( hdib ); hdib = CreateDIBitmap( hdc, &bi->bmiHeader, 0, bits, bi, DIB_PAL_COLORS+1 ); ok( hdib != NULL, "CreateDIBitmap failed with DIB_PAL_COLORS+1\n" ); DeleteObject( hdib );
@@ -1223,6 +1234,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_PAL_COLORS+2, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with DIB_PAL_COLORS+2\n" );
- DeleteObject( hdib ); hdib = CreateDIBitmap( hdc, &bi->bmiHeader, 0, bits, bi, DIB_PAL_COLORS+2 ); ok( hdib == NULL, "CreateDIBitmap succeeded with DIB_PAL_COLORS+2\n" ); DeleteObject( hdib );
@@ -1255,6 +1267,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with size overflow\n" );
DeleteObject( hdib );
bi->bmiHeader.biWidth = 1; bi->bmiHeader.biHeight = 0x40000001;
@@ -1262,6 +1275,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with size overflow\n" );
DeleteObject( hdib );
bi->bmiHeader.biWidth = 2; bi->bmiHeader.biHeight = 0x40000001;
@@ -1269,6 +1283,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with size overflow\n" );
DeleteObject( hdib );
bi->bmiHeader.biWidth = 0x40000001; bi->bmiHeader.biHeight = 1;
@@ -1276,6 +1291,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with size overflow\n" );
DeleteObject( hdib );
bi->bmiHeader.biWidth = 0x40000001; bi->bmiHeader.biHeight = 4;
@@ -1283,6 +1299,7 @@ static void test_dib_formats(void) bi->bmiHeader.biCompression = BI_RGB; hdib = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, &bits, NULL, 0); ok( hdib == NULL, "CreateDIBSection succeeded with size overflow\n" );
DeleteObject( hdib );
DeleteDC( memdc ); DeleteObject( hbmp );
@@ -2615,6 +2632,7 @@ static void test_GetDIBits_BI_BITFIELDS(void) dibinfo->bmiHeader.biClrImportant = 0; hbm = CreateDIBSection( hdc, dibinfo, DIB_RGB_COLORS, &ptr, NULL, 0 ); ok( hbm == 0, "creating 24-bpp BI_BITFIELDS dibsection should fail\n" );
- DeleteObject( hbm ); dibinfo->bmiHeader.biCompression = BI_RGB; hbm = CreateDIBSection( hdc, dibinfo, DIB_RGB_COLORS, &ptr, NULL, 0 ); ok( hbm != 0, "failed to create bitmap\n" );
@@ -2876,6 +2894,7 @@ static void test_bitmapinfoheadersize(void)
hdib = CreateDIBSection(hdc, &bmi, 0, NULL, NULL, 0); ok(hdib == NULL, "CreateDIBSection succeeded\n");
DeleteObject(hdib);
bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
@@ -2937,6 +2956,7 @@ static void test_bitmapinfoheadersize(void)
hdib = CreateDIBSection(hdc, (BITMAPINFO *)&bci, 0, NULL, NULL, 0); ok(hdib == NULL, "CreateDIBSection succeeded\n");
DeleteObject(hdib);
bci.bmciHeader.bcSize = sizeof(BITMAPCOREHEADER);
@@ -2949,6 +2969,7 @@ static void test_bitmapinfoheadersize(void)
hdib = CreateDIBSection(hdc, (BITMAPINFO *)&bci, 0, NULL, NULL, 0); ok(hdib == NULL, "CreateDIBSection succeeded\n");
DeleteObject(hdib);
bci.bmciHeader.bcSize = sizeof(BITMAPCOREINFO);
diff --git a/dlls/gdi32/tests/brush.c b/dlls/gdi32/tests/brush.c index 1a10429c05..ec5819f042 100644 --- a/dlls/gdi32/tests/brush.c +++ b/dlls/gdi32/tests/brush.c @@ -237,36 +237,43 @@ static void test_pattern_brush(void) DeleteObject( brush ); brush = CreateDIBPatternBrushPt( info, DIB_PAL_COLORS + 2 ); ok( !brush, "CreateDIBPatternBrushPt succeeded\n" );
DeleteObject( brush ); brush = CreateDIBPatternBrushPt( info, DIB_PAL_COLORS + 3 ); ok( !brush, "CreateDIBPatternBrushPt succeeded\n" );
DeleteObject( brush );
info->bmiHeader.biBitCount = 8; info->bmiHeader.biCompression = BI_RLE8; brush = CreateDIBPatternBrushPt( info, DIB_RGB_COLORS ); ok( !brush, "CreateDIBPatternBrushPt succeeded\n" );
DeleteObject( brush );
info->bmiHeader.biBitCount = 4; info->bmiHeader.biCompression = BI_RLE4; brush = CreateDIBPatternBrushPt( info, DIB_RGB_COLORS ); ok( !brush, "CreateDIBPatternBrushPt succeeded\n" );
DeleteObject( brush );
br.lbStyle = BS_DIBPATTERN8X8; br.lbColor = DIB_RGB_COLORS; br.lbHatch = (ULONG_PTR)mem; brush = CreateBrushIndirect( &br ); ok( !brush, "CreatePatternBrush succeeded\n" );
DeleteObject( brush );
br.lbStyle = BS_MONOPATTERN; br.lbColor = DIB_RGB_COLORS; br.lbHatch = (ULONG_PTR)mem; brush = CreateBrushIndirect( &br ); ok( !brush, "CreatePatternBrush succeeded\n" );
DeleteObject( brush );
br.lbStyle = BS_INDEXED; br.lbColor = DIB_RGB_COLORS; br.lbHatch = (ULONG_PTR)mem; brush = CreateBrushIndirect( &br ); ok( !brush, "CreatePatternBrush succeeded\n" );
DeleteObject( brush );
GlobalFree( mem );
}
How did you verify if this fixes any leaks? It looks to me that you're releasing NULL handles most of the time.
Hi,
While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at https://testbot.winehq.org/JobDetails.pl?Key=35005
Your paranoid android.
=== wxppro (32 bit bitmap) === bitmap.c:489: Test failed: 00000000 != 00A90000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0x75900000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 00000000 != 00A90000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 00000000 != 00A90000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 2288148 bitmap.c:283: Test failed: wrong bm.bmPlanes 184 bitmap.c:284: Test failed: bm.bmBitsPixel 31889 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 00242098 != 00A90000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 0 bitmap.c:306: Test failed: wrong bm.bmHeight 2288148 bitmap.c:307: Test failed: wrong bm.bmBits 00242098 != 00A90000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAA != 00A90000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAA != 00A90000
=== w2003std (32 bit bitmap) === bitmap.c:489: Test failed: 00000000 != 00A80000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0x75810000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 00000000 != 00A80000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 00000000 != 00A80000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:274: Test failed: wrong bm.bmType 2288348 bitmap.c:275: Test failed: wrong bm.bmWidth 2088934829 bitmap.c:276: Test failed: wrong bm.bmHeight 2364280 bitmap.c:280: Test failed: wrong bm.bmWidthBytes 2088934857 != -234195276 bitmap.c:283: Test failed: wrong bm.bmPlanes 16448 bitmap.c:284: Test failed: bm.bmBitsPixel 32 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 7C82717D != 00A80000 bitmap.c:292: Test failed: 0 != -318308256 bitmap.c:297: Test failed: 0 != -318308256 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 2088934829 bitmap.c:306: Test failed: wrong bm.bmHeight 2364280 bitmap.c:307: Test failed: wrong bm.bmBits 7C82717D != 00A80000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAA != 00A80000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAA != 00A80000
=== wvistau64 (32 bit bitmap) === bitmap.c:489: Test failed: 00000000 != 003C0000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0x40000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 00000000 != 003C0000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 00000000 != 003C0000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 0 bitmap.c:280: Test failed: wrong bm.bmWidthBytes 9568452 != 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 13872 bitmap.c:284: Test failed: bm.bmBitsPixel 146 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 00000000 != 003C0000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 0 bitmap.c:306: Test failed: wrong bm.bmHeight 0 bitmap.c:307: Test failed: wrong bm.bmBits 00000000 != 003C0000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAA != 003C0000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAA != 003C0000
=== w2008s64 (32 bit bitmap) === bitmap.c:489: Test failed: 00000000 != 002C0000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0x40000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 00000000 != 002C0000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 00000000 != 002C0000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 0 bitmap.c:280: Test failed: wrong bm.bmWidthBytes 6357188 != 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 14264 bitmap.c:284: Test failed: bm.bmBitsPixel 97 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 00000000 != 002C0000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 0 bitmap.c:306: Test failed: wrong bm.bmHeight 0 bitmap.c:307: Test failed: wrong bm.bmBits 00000000 != 002C0000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAA != 002C0000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAA != 002C0000
=== w7u (32 bit bitmap) === bitmap.c:489: Test failed: 00000000 != 00300000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0x60000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 00000000 != 00300000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 00000000 != 00300000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:274: Test failed: wrong bm.bmType 6891952 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 6881280 bitmap.c:280: Test failed: wrong bm.bmWidthBytes 6881616 != 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 0 bitmap.c:284: Test failed: bm.bmBitsPixel 0 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 00000000 != 00300000 0938:bitmap: unhandled exception c0000005 at 761897E9
=== w7pro64 (32 bit bitmap) === bitmap.c:489: Test failed: 00000000 != 00340000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0xc0000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 00000000 != 00340000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 00000000 != 00340000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:274: Test failed: wrong bm.bmType 7747328 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 7733248 bitmap.c:280: Test failed: wrong bm.bmWidthBytes 7733584 != 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 0 bitmap.c:284: Test failed: bm.bmBitsPixel 0 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 00000000 != 00340000 0264:bitmap: unhandled exception c0000005 at 76A597E9
=== w8 (32 bit bitmap) === bitmap.c:489: Test failed: 00000000 != 00310000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0x40000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 00000000 != 00310000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 00000000 != 00310000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:274: Test failed: wrong bm.bmType 6409864 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 0 bitmap.c:280: Test failed: wrong bm.bmWidthBytes 128 != 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 648 bitmap.c:284: Test failed: bm.bmBitsPixel 97 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 00000001 != 00310000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 0 bitmap.c:306: Test failed: wrong bm.bmHeight 0 bitmap.c:307: Test failed: wrong bm.bmBits 00000001 != 00310000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAA != 00310000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAA != 00310000
=== w864 (32 bit bitmap) === bitmap.c:489: Test failed: 00000000 != 00360000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0x50000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 00000000 != 00360000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 00000000 != 00360000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:274: Test failed: wrong bm.bmType 6801000 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 6750856 bitmap.c:280: Test failed: wrong bm.bmWidthBytes 1 != 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 35 bitmap.c:284: Test failed: bm.bmBitsPixel 0 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 00000000 != 00360000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 0 bitmap.c:306: Test failed: wrong bm.bmHeight 6750856 bitmap.c:307: Test failed: wrong bm.bmBits 00000000 != 00360000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAA != 00360000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAA != 00360000
=== w1064 (32 bit bitmap) === bitmap.c:489: Test failed: 00000000 != 00390000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0x70000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 00000000 != 00390000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 00000000 != 00390000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:274: Test failed: wrong bm.bmType 6291456 bitmap.c:275: Test failed: wrong bm.bmWidth 6319112 bitmap.c:276: Test failed: wrong bm.bmHeight 6292100 bitmap.c:283: Test failed: wrong bm.bmPlanes 128 bitmap.c:284: Test failed: bm.bmBitsPixel 0 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 00000000 != 00390000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 6319112 bitmap.c:306: Test failed: wrong bm.bmHeight 6292100 bitmap.c:307: Test failed: wrong bm.bmBits 00000000 != 00390000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAA != 00390000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAA != 00390000
=== wvistau64 (64 bit bitmap) === bitmap.c:489: Test failed: 0000000000000000 != 0000000000370000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0x90000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 0000000000000000 != 0000000000370000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 0000000000000000 != 0000000000370000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 0 bitmap.c:284: Test failed: bm.bmBitsPixel 0 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 0000000000000105 != 0000000000370000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 0 bitmap.c:306: Test failed: wrong bm.bmHeight 0 bitmap.c:307: Test failed: wrong bm.bmBits 0000000000000105 != 0000000000370000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAAAAAAAAAA != 0000000000370000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAAAAAAAAAA != 0000000000370000
=== w2008s64 (64 bit bitmap) === bitmap.c:489: Test failed: 0000000000000000 != 0000000000560000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0x80000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 0000000000000000 != 0000000000560000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 0000000000000000 != 0000000000560000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 0 bitmap.c:284: Test failed: bm.bmBitsPixel 0 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 00000000000000EE != 0000000000560000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 0 bitmap.c:306: Test failed: wrong bm.bmHeight 0 bitmap.c:307: Test failed: wrong bm.bmBits 00000000000000EE != 0000000000560000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAAAAAAAAAA != 0000000000560000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAAAAAAAAAA != 0000000000560000
=== w7pro64 (64 bit bitmap) === bitmap.c:489: Test failed: 0000000000000000 != 0000000000560000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0xe0000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 0000000000000000 != 0000000000560000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 0000000000000000 != 0000000000560000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 0 bitmap.c:284: Test failed: bm.bmBitsPixel 0 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 0000000000000000 != 0000000000560000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 0 bitmap.c:306: Test failed: wrong bm.bmHeight 0 bitmap.c:307: Test failed: wrong bm.bmBits 0000000000000000 != 0000000000560000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAAAAAAAAAA != 0000000000560000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAAAAAAAAAA != 0000000000560000
=== w864 (64 bit bitmap) === bitmap.c:489: Test failed: 0000000000000000 != 0000000000310000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0xf0000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 0000000000000000 != 0000000000310000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 0000000000000000 != 0000000000310000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 0 bitmap.c:284: Test failed: bm.bmBitsPixel 0 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 0000000000000006 != 0000000000310000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 0 bitmap.c:306: Test failed: wrong bm.bmHeight 0 bitmap.c:307: Test failed: wrong bm.bmBits 0000000000000006 != 0000000000310000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAAAAAAAAAA != 0000000000310000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAAAAAAAAAA != 0000000000310000
=== w1064 (64 bit bitmap) === bitmap.c:489: Test failed: 0000000000000000 != 0000000000360000 bitmap.c:490: Test failed: 0 != PAGE_READWRITE bitmap.c:491: Test failed: 0xa0000 != 0x26000 bitmap.c:492: Test failed: 10000 != MEM_COMMIT bitmap.c:493: Test failed: 1 != PAGE_READWRITE bitmap.c:494: Test failed: 0 != MEM_PRIVATE bitmap.c:390: Test failed: 0000000000000000 != 0000000000360000 bitmap.c:391: Test failed: 0 != PAGE_READWRITE bitmap.c:392: Test failed: 10000 != MEM_COMMIT bitmap.c:393: Test failed: 1 != PAGE_READWRITE bitmap.c:394: Test failed: 0 != MEM_PRIVATE bitmap.c:408: Test failed: SetDIBits failed: expected 16 got 0 bitmap.c:415: Test failed: 0000000000000000 != 0000000000360000 bitmap.c:416: Test failed: 0 != PAGE_READWRITE bitmap.c:417: Test failed: 10000 != MEM_COMMIT bitmap.c:418: Test failed: 0 != MEM_PRIVATE bitmap.c:419: Test failed: 1 != PAGE_READWRITE bitmap.c:428: Test failed: WriteFile failed error 1784 bitmap.c:272: Test failed: GetObject returned 0 bitmap.c:275: Test failed: wrong bm.bmWidth 0 bitmap.c:276: Test failed: wrong bm.bmHeight 0 bitmap.c:283: Test failed: wrong bm.bmPlanes 0 bitmap.c:284: Test failed: bm.bmBitsPixel 0 != 24 bitmap.c:285: Test failed: wrong bm.bmBits 0000000000000000 != 0000000000360000 bitmap.c:304: Test failed: wrong size 0 bitmap.c:305: Test failed: wrong bm.bmWidth 0 bitmap.c:306: Test failed: wrong bm.bmHeight 0 bitmap.c:307: Test failed: wrong bm.bmBits 0000000000000000 != 0000000000360000 bitmap.c:323: Test failed: wrong size 0 bitmap.c:327: Test failed: wrong size 0 bitmap.c:329: Test failed: wrong bm.bmBits AAAAAAAAAAAAAAAA != 0000000000360000 bitmap.c:331: Test failed: 2863311530 != 3817748708 bitmap.c:336: Test failed: 2863311530 != 40 bitmap.c:337: Test failed: -1431655766 != 512 bitmap.c:338: Test failed: -1431655766 != 100 bitmap.c:339: Test failed: 43690 != 1 bitmap.c:340: Test failed: 43690 != 24 bitmap.c:341: Test failed: 2863311530 != 0 bitmap.c:345: Test failed: -1431655766 != 0 bitmap.c:346: Test failed: -1431655766 != 0 bitmap.c:350: Test failed: wrong size 0 bitmap.c:351: Test failed: -1431655766 != 512 bitmap.c:352: Test failed: -1431655766 != 100 bitmap.c:353: Test failed: AAAAAAAAAAAAAAAA != 0000000000360000