Commit 5bab7516 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

kernel32: Fix leak of dynamic_buffer in QueryFullProcessImageNameW (Coverity).

parent d48e3a0b
...@@ -3568,8 +3568,8 @@ BOOL WINAPI QueryFullProcessImageNameW(HANDLE hProcess, DWORD dwFlags, LPWSTR lp ...@@ -3568,8 +3568,8 @@ BOOL WINAPI QueryFullProcessImageNameW(HANDLE hProcess, DWORD dwFlags, LPWSTR lp
ntlen = devlen + (result->Length/sizeof(WCHAR) - 2); ntlen = devlen + (result->Length/sizeof(WCHAR) - 2);
if (ntlen + 1 > *pdwSize) if (ntlen + 1 > *pdwSize)
{ {
SetLastError(ERROR_INSUFFICIENT_BUFFER); status = STATUS_BUFFER_TOO_SMALL;
return FALSE; goto cleanup;
} }
*pdwSize = ntlen; *pdwSize = ntlen;
......
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