oleaut32/tests: Fix olepicture tests compilation with __WINESRC__ defined.
This commit is contained in:
parent
1f31eb42cc
commit
320a3f7e7d
|
@ -220,7 +220,7 @@ test_pic_with_stream(LPSTREAM stream, unsigned int imgsize)
|
||||||
if (handle)
|
if (handle)
|
||||||
{
|
{
|
||||||
BITMAP bmp;
|
BITMAP bmp;
|
||||||
GetObject(UlongToHandle(handle), sizeof(BITMAP), &bmp);
|
GetObjectA(UlongToHandle(handle), sizeof(BITMAP), &bmp);
|
||||||
todo_wine ok(bmp.bmBits != 0, "not a dib\n");
|
todo_wine ok(bmp.bmBits != 0, "not a dib\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -640,7 +640,7 @@ static void test_Render(void)
|
||||||
|
|
||||||
desc.cbSizeofstruct = sizeof(PICTDESC);
|
desc.cbSizeofstruct = sizeof(PICTDESC);
|
||||||
desc.picType = PICTYPE_ICON;
|
desc.picType = PICTYPE_ICON;
|
||||||
desc.u.icon.hicon = LoadIcon(NULL, IDI_APPLICATION);
|
desc.u.icon.hicon = LoadIconA(NULL, (LPCSTR)IDI_APPLICATION);
|
||||||
if(!desc.u.icon.hicon){
|
if(!desc.u.icon.hicon){
|
||||||
win_skip("LoadIcon failed. Skipping...\n");
|
win_skip("LoadIcon failed. Skipping...\n");
|
||||||
ReleaseDC(NULL, hdc);
|
ReleaseDC(NULL, hdc);
|
||||||
|
@ -1020,7 +1020,7 @@ static void test_load_save_icon(void)
|
||||||
|
|
||||||
desc.cbSizeofstruct = sizeof(desc);
|
desc.cbSizeofstruct = sizeof(desc);
|
||||||
desc.picType = PICTYPE_ICON;
|
desc.picType = PICTYPE_ICON;
|
||||||
desc.u.icon.hicon = LoadIcon(0, IDI_APPLICATION);
|
desc.u.icon.hicon = LoadIconA(NULL, (LPCSTR)IDI_APPLICATION);
|
||||||
hr = OleCreatePictureIndirect(&desc, &IID_IPicture, FALSE, (void**)&pic);
|
hr = OleCreatePictureIndirect(&desc, &IID_IPicture, FALSE, (void**)&pic);
|
||||||
ok(hr == S_OK, "OleCreatePictureIndirect error %#x\n", hr);
|
ok(hr == S_OK, "OleCreatePictureIndirect error %#x\n", hr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue