mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 00:50:23 +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)
|
InternalGetWindowText(HWND hWnd, LPWSTR lpString, int nMaxCount)
|
||||||
{
|
{
|
||||||
INT Ret = NtUserInternalGetWindowText(hWnd, lpString, nMaxCount);
|
INT Ret = NtUserInternalGetWindowText(hWnd, lpString, nMaxCount);
|
||||||
if (Ret == 0)
|
if (Ret == 0 && lpString)
|
||||||
*lpString = L'\0';
|
*lpString = L'\0';
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue