Austin English : localui/tests: Make sure to use return values (LLVM/Clang) .
Alexandre Julliard
julliard at winehq.org
Wed Feb 9 15:30:12 CST 2011
Module: wine
Branch: master
Commit: 7a87c8ac453b515ecc135a30a0a12b7eaf2b37f4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a87c8ac453b515ecc135a30a0a12b7eaf2b37f4
Author: Austin English <austinenglish at gmail.com>
Date: Tue Feb 8 15:50:47 2011 -0800
localui/tests: Make sure to use return values (LLVM/Clang).
---
dlls/localui/tests/localui.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/localui/tests/localui.c b/dlls/localui/tests/localui.c
index cb7a1cf..59ac3b5 100644
--- a/dlls/localui/tests/localui.c
+++ b/dlls/localui/tests/localui.c
@@ -71,9 +71,10 @@ static PORT_INFO_2W * find_portinfo2(LPWSTR pPort)
if (!pi_buffer) {
res = EnumPortsW(NULL, 2, NULL, 0, &pi_needed, &pi_numports);
+ ok(!res, "EnumPorts failed: got %d\n", res);
pi_buffer = HeapAlloc(GetProcessHeap(), 0, pi_needed);
- SetLastError(0xdeadbeef);
res = EnumPortsW(NULL, 2, pi_buffer, pi_needed, &pi_needed, &pi_numports);
+ ok(res == 1, "EnumPorts failed: got %d\n", res);
}
if (pi_buffer) {
pi = (PORT_INFO_2W *) pi_buffer;
More information about the wine-cvs
mailing list