1
0
Fork 0
mirror of https://github.com/reactos/reactos.git synced 2025-05-22 18:45:00 +00:00

- NtQueryInformationProcess with ProcessImageFileName query type:

Free the buffer allocated by SeLocateProcessImageName, and set return status if return buffer is too small (so caller will know to allocate more memory). Spotted by 
See issue  for more details.

svn path=/trunk/; revision=36136
This commit is contained in:
Stefan Ginsberg 2008-09-11 14:24:41 +00:00
parent f803831055
commit 37cea55dc6

View file

@ -426,6 +426,14 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
} }
_SEH_END; _SEH_END;
} }
else
{
/* Buffer too small */
Status = STATUS_INFO_LENGTH_MISMATCH;
}
/* Free the image path */
ExFreePool(ImageName);
} }
break; break;