mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
ole32/tests: Don't crash on NT4.
This commit is contained in:
parent
d560b7bbb0
commit
a9c3d6f207
@ -158,9 +158,9 @@ static void test_marshal_HGLOBAL(void)
|
|||||||
|
|
||||||
static HENHMETAFILE create_emf(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");
|
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);
|
return CloseEnhMetaFile(hdc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user