mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[USER32] InternalGetWindowText: Write to caller's buffer only when one was provided. CORE-13614
This commit is contained in:
parent
bd193c4534
commit
6318e47bb9
1 changed files with 1 additions and 1 deletions
|
@ -1799,7 +1799,7 @@ int WINAPI
|
|||
InternalGetWindowText(HWND hWnd, LPWSTR lpString, int nMaxCount)
|
||||
{
|
||||
INT Ret = NtUserInternalGetWindowText(hWnd, lpString, nMaxCount);
|
||||
if (Ret == 0)
|
||||
if (Ret == 0 && lpString)
|
||||
*lpString = L'\0';
|
||||
return Ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue