inetcomm/tests: sign compare fixes
Austin English
austinenglish at gmail.com
Fri May 8 11:45:51 CDT 2009
--
-Austin
-------------- next part --------------
diff --git a/dlls/inetcomm/tests/mimeintl.c b/dlls/inetcomm/tests/mimeintl.c
index 563943f..1da034d 100644
--- a/dlls/inetcomm/tests/mimeintl.c
+++ b/dlls/inetcomm/tests/mimeintl.c
@@ -149,6 +149,7 @@ static void test_charset(void)
{
IMimeInternational *internat;
HRESULT hr;
+ DWORD ret;
HCHARSET hcs, hcs_windows_1252, hcs_windows_1251;
INETCSETINFO cs_info;
MIMECSETINFO mlang_cs_info;
@@ -157,7 +158,7 @@ static void test_charset(void)
ok(hr == S_OK, "ret %08x\n", hr);
hr = IMimeInternational_FindCharset(internat, "non-existent", &hcs);
- ok(hr == MIME_E_NOT_FOUND, "got %08x\n", hr);
+ ok(ret == MIME_E_NOT_FOUND, "got %08x\n", ret);
hr = IMimeInternational_FindCharset(internat, "windows-1252", &hcs_windows_1252);
ok(hr == S_OK, "got %08x\n", hr);
diff --git a/dlls/inetcomm/tests/mimeole.c b/dlls/inetcomm/tests/mimeole.c
index 7edef67..c1b938c 100644
--- a/dlls/inetcomm/tests/mimeole.c
+++ b/dlls/inetcomm/tests/mimeole.c
@@ -86,6 +86,7 @@ static void test_CreateSecurity(void)
static void test_CreateBody(void)
{
HRESULT hr;
+ DWORD ret;
IMimeBody *body;
HBODY handle = (void *)0xdeadbeef;
IStream *in;
@@ -101,7 +102,7 @@ static void test_CreateBody(void)
ok(hr == S_OK, "ret %08x\n", hr);
hr = IMimeBody_GetHandle(body, &handle);
- ok(hr == MIME_E_NO_DATA, "ret %08x\n", hr);
+ ok(ret == MIME_E_NO_DATA, "ret %08x\n", ret);
ok(handle == NULL, "handle %p\n", handle);
hr = CreateStreamOnHGlobal(NULL, TRUE, &in);
@@ -144,7 +145,7 @@ static void test_CreateBody(void)
memset(&offsets, 0xcc, sizeof(offsets));
hr = IMimeBody_GetOffsets(body, &offsets);
- ok(hr == MIME_E_NO_DATA, "ret %08x\n", hr);
+ ok(ret == MIME_E_NO_DATA, "ret %08x\n", ret);
ok(offsets.cbBoundaryStart == 0, "got %d\n", offsets.cbBoundaryStart);
ok(offsets.cbHeaderStart == 0, "got %d\n", offsets.cbHeaderStart);
ok(offsets.cbBodyStart == 0, "got %d\n", offsets.cbBodyStart);
@@ -157,7 +158,7 @@ static void test_CreateBody(void)
ok(hr == S_OK, "ret %08x\n", hr);
hr = IMimeBody_GetParameters(body, "nothere", &count, ¶m_info);
- ok(hr == MIME_E_NOT_FOUND, "ret %08x\n", hr);
+ ok(ret == MIME_E_NOT_FOUND, "ret %08x\n", ret);
ok(count == 0, "got %d\n", count);
ok(!param_info, "got %p\n", param_info);
@@ -211,6 +212,7 @@ static void test_Allocator(void)
static void test_CreateMessage(void)
{
HRESULT hr;
+ DWORD ret;
IMimeMessage *msg;
IStream *stream;
LARGE_INTEGER pos;
@@ -307,7 +309,7 @@ static void test_CreateMessage(void)
ok(hr == S_OK, "ret %08x\n", hr);
hr = IMimeMessage_FindNext(msg, &find_struct, &hbody);
- ok(hr == MIME_E_NOT_FOUND, "ret %08x\n", hr);
+ ok(ret == MIME_E_NOT_FOUND, "ret %08x\n", ret);
hr = IMimeMessage_GetAttachments(msg, &count, &body_list);
ok(hr == S_OK, "ret %08x\n", hr);
More information about the wine-patches
mailing list