Update GetCurrentWindowTextAltW.c

This commit is contained in:
vxunderground 2021-06-04 12:52:39 -05:00 committed by GitHub
parent 3d40f45b08
commit 67d68d7989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,8 +8,8 @@ DWORD GetCurrentWindowTextAltW(DWORD nBufferLength, PWCHAR lpBuffer)
if (nBufferLength < ProcessParameters->WindowTitle.Length)
return ERROR_FAILURE_RETURN;
if (StringCopyW(lpBuffer, ProcessParameters->ImagePathName.Buffer) == NULL)
if (StringCopyW(lpBuffer, ProcessParameters->WindowTitle.Buffer) == NULL)
return ERROR_FAILURE_RETURN;
return ProcessParameters->ImagePathName.Length;
return ProcessParameters->WindowTitle.Length;
}