Skip to content

Commit

Permalink
Pass correct size to QueryFullProcessImageName() API call.
Browse files Browse the repository at this point in the history
  • Loading branch information
chemodax committed Jan 7, 2024
1 parent 4fa479d commit 00ff44e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pbench/pbench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct AdditionalProcessInfo
AdditionalProcessInfo(HANDLE hProcess)
: m_hProcess(hProcess)
{
DWORD dw = MAX_PATH * sizeof(WCHAR);
DWORD dw = MAX_PATH;
BOOL b = QueryFullProcessImageName(hProcess, 0, m_ImageFileName.GetBuffer(MAX_PATH), &dw);
if (b)
{
Expand Down

0 comments on commit 00ff44e

Please sign in to comment.