Commit a679b4e3 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

user32: Add argument check for PTITLEBARINFO in GetTitleBarInfo().

parent 9aee8fd5
......@@ -1630,6 +1630,11 @@ BOOL WINAPI GetTitleBarInfo(HWND hwnd, PTITLEBARINFO tbi) {
TRACE("(%p %p)\n", hwnd, tbi);
if(!tbi) {
SetLastError(ERROR_NOACCESS);
return FALSE;
}
if(tbi->cbSize != sizeof(TITLEBARINFO)) {
TRACE("Invalid TITLEBARINFO size: %d\n", tbi->cbSize);
SetLastError(ERROR_INVALID_PARAMETER);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment