diff --git a/src/pbench/pbench.cpp b/src/pbench/pbench.cpp index 0bea649..a07a931 100644 --- a/src/pbench/pbench.cpp +++ b/src/pbench/pbench.cpp @@ -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) {