mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:22:58 +00:00
[UXTHEME] -Apply some suggestions by Thomas.
svn path=/trunk/; revision=74579
This commit is contained in:
parent
a1a782be93
commit
313744b524
1 changed files with 3 additions and 3 deletions
|
@ -119,11 +119,11 @@ HRESULT WINAPI ThemeDrawCaptionText(PDRAW_CONTEXT pcontext, RECT* pRect, int iPa
|
||||||
|
|
||||||
len++; /* From now on this is the size of the buffer so include the null */
|
len++; /* From now on this is the size of the buffer so include the null */
|
||||||
|
|
||||||
if (len > 50)
|
if (len > ARRAYSIZE(buffer))
|
||||||
{
|
{
|
||||||
pszText = (WCHAR*)HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
pszText = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||||
if (!pszText)
|
if (!pszText)
|
||||||
return E_FAIL;
|
return E_OUTOFMEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
InternalGetWindowText(pcontext->hWnd, pszText, len);
|
InternalGetWindowText(pcontext->hWnd, pszText, len);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue