Update GetCurrentWindowTextAltW.c
This commit is contained in:
parent
3d40f45b08
commit
67d68d7989
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user