mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[GDI32] Fix GetObjectW() GDI_OBJECT_TYPE_BRUSH handling. (#4394)
This fixes the last GetObjectW apitest case: ok_long(GetObjectA(hBrush, 0, &TestStruct), 0); - When "cbSize" is "0", GetObjectW shouldn't return "sizeof(LOGBRUSH)" but 0. - Rely in BRUSH::cjGetObject behavior which returns 0 when cjSize is 0. Co-authored-by: Víctor Martínez Calvo <victormartinez@alub.io>
This commit is contained in:
parent
3e2df36561
commit
b57be0a746
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ GetObjectW(
|
|||
break;
|
||||
|
||||
case GDI_OBJECT_TYPE_BRUSH:
|
||||
if (!lpBuffer || !cbSize) return sizeof(LOGBRUSH);
|
||||
if (!lpBuffer) return sizeof(LOGBRUSH);
|
||||
break;
|
||||
|
||||
case GDI_OBJECT_TYPE_BITMAP:
|
||||
|
|
Loading…
Reference in a new issue