mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 06:00:45 +00:00
urlmon/tests: Don't test function directly when reporting GetLastError().
This commit is contained in:
parent
d037b40995
commit
4ed08b9d24
@ -1617,9 +1617,10 @@ static HRESULT WINAPI statusclb_OnDataAvailable(IBindStatusCallbackEx *iface, DW
|
||||
ok(pformatetc != NULL, "pformatetx == NULL\n");
|
||||
if(pformatetc) {
|
||||
if (mime_type[0]) {
|
||||
INT ret;
|
||||
clipfmt[0] = 0;
|
||||
ok(GetClipboardFormatName(pformatetc->cfFormat, clipfmt, sizeof(clipfmt)-1),
|
||||
"GetClipboardFormatName failed, error %d\n", GetLastError());
|
||||
ret = GetClipboardFormatName(pformatetc->cfFormat, clipfmt, sizeof(clipfmt)-1);
|
||||
ok(ret, "GetClipboardFormatName failed, error %d\n", GetLastError());
|
||||
ok(!lstrcmp(clipfmt, mime_type), "clipformat %x != mime_type, \"%s\" != \"%s\"\n",
|
||||
pformatetc->cfFormat, clipfmt, mime_type);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user