Commit b3166ff3 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

kernel32/tests: Remove unused variable size from test_process_info (Coverity).

parent dc08a2d5
......@@ -3770,7 +3770,7 @@ static void test_process_info(HANDLE hproc)
sizeof(PROCESS_JOB_MEMORY_INFO) /* ProcessJobMemoryInformation */,
#endif
};
ULONG i, status, ret_len, size;
ULONG i, status, ret_len;
BOOL is_current = hproc == GetCurrentProcess();
if (!pNtQueryInformationProcess)
......@@ -3781,8 +3781,6 @@ static void test_process_info(HANDLE hproc)
for (i = 0; i < MaxProcessInfoClass; i++)
{
size = info_size[i];
if (!size) size = sizeof(buf);
ret_len = 0;
status = pNtQueryInformationProcess(hproc, i, buf, info_size[i], &ret_len);
if (status == STATUS_NOT_IMPLEMENTED) continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment