mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
localui/tests: Make sure to use return values (LLVM/Clang).
This commit is contained in:
parent
90c9681e42
commit
7a87c8ac45
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user