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

This commit is contained in:
Sebastian Lackner 2015-03-17 06:34:03 +01:00 committed by Alexandre Julliard
parent d48e3a0bea
commit 5bab75166c
1 changed files with 2 additions and 2 deletions

View File

@ -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;