André Hentschel : urlmon/tests: Don' t test function directly when reporting GetLastError().
Alexandre Julliard
julliard at winehq.org
Thu Dec 30 10:49:56 CST 2010
Module: wine
Branch: master
Commit: 4ed08b9d249ea0714eb10ce1a9e6eac3ed2bd07c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ed08b9d249ea0714eb10ce1a9e6eac3ed2bd07c
Author: André Hentschel <nerv at dawncrow.de>
Date: Thu Dec 30 02:38:36 2010 +0100
urlmon/tests: Don't test function directly when reporting GetLastError().
---
dlls/urlmon/tests/url.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c
index 875294b..2c2acf7 100644
--- a/dlls/urlmon/tests/url.c
+++ b/dlls/urlmon/tests/url.c
@@ -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 {
More information about the wine-cvs
mailing list