kernel32: Fix leak of dynamic_buffer in QueryFullProcessImageNameW (Coverity).
This commit is contained in:
parent
d48e3a0bea
commit
5bab75166c
|
@ -3568,8 +3568,8 @@ BOOL WINAPI QueryFullProcessImageNameW(HANDLE hProcess, DWORD dwFlags, LPWSTR lp
|
|||
ntlen = devlen + (result->Length/sizeof(WCHAR) - 2);
|
||||
if (ntlen + 1 > *pdwSize)
|
||||
{
|
||||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||
return FALSE;
|
||||
status = STATUS_BUFFER_TOO_SMALL;
|
||||
goto cleanup;
|
||||
}
|
||||
*pdwSize = ntlen;
|
||||
|
||||
|
|
Loading…
Reference in New Issue