wtsapi32: Remove useless info free (Coverity).
This commit is contained in:
parent
0d00e16327
commit
a2894d4e41
|
@ -69,13 +69,11 @@ static void test_WTSEnumerateProcessesW(void)
|
||||||
ok(GetLastError()== ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER got: %d\n", GetLastError());
|
ok(GetLastError()== ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER got: %d\n", GetLastError());
|
||||||
if (info) WTSFreeMemory(info);
|
if (info) WTSFreeMemory(info);
|
||||||
|
|
||||||
info = NULL;
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = WTSEnumerateProcessesW(WTS_CURRENT_SERVER_HANDLE, 0, 1, NULL, &count);
|
ret = WTSEnumerateProcessesW(WTS_CURRENT_SERVER_HANDLE, 0, 1, NULL, &count);
|
||||||
ok(!ret, "expected WTSEnumerateProcessesW to fail\n");
|
ok(!ret, "expected WTSEnumerateProcessesW to fail\n");
|
||||||
todo_wine
|
todo_wine
|
||||||
ok(GetLastError()== ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER got: %d\n", GetLastError());
|
ok(GetLastError()== ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER got: %d\n", GetLastError());
|
||||||
if (info) WTSFreeMemory(info);
|
|
||||||
|
|
||||||
info = NULL;
|
info = NULL;
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
|
|
Loading…
Reference in New Issue