ole32/tests: Don't crash on NT4.

This commit is contained in:
Paul Vriens 2008-11-11 07:48:04 +01:00 committed by Alexandre Julliard
parent d560b7bbb0
commit a9c3d6f207

View File

@ -158,9 +158,9 @@ static void test_marshal_HGLOBAL(void)
static HENHMETAFILE create_emf(void)
{
RECT rect = {0, 0, 100, 100};
const RECT rect = {0, 0, 100, 100};
HDC hdc = CreateEnhMetaFile(NULL, NULL, &rect, "HENHMETAFILE Marshaling Test\0Test\0\0");
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, NULL, "Test String", strlen("Test String"), NULL);
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rect, "Test String", strlen("Test String"), NULL);
return CloseEnhMetaFile(hdc);
}