From dc7f4f682f814da4a2d3bc362f8687a4338aa708 Mon Sep 17 00:00:00 2001 From: jimtabor Date: Thu, 9 May 2019 12:35:21 -0500 Subject: [PATCH] [Win32SS] Plug in Last Batch Plugging in last batch after 12 years. --- win32ss/gdi/gdi32/include/gdi32p.h | 2 +- win32ss/gdi/ntgdi/dclife.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/win32ss/gdi/gdi32/include/gdi32p.h b/win32ss/gdi/gdi32/include/gdi32p.h index 35748506836..c054bf1fcc9 100644 --- a/win32ss/gdi/gdi32/include/gdi32p.h +++ b/win32ss/gdi/gdi32/include/gdi32p.h @@ -408,7 +408,7 @@ GdiAllocBatchCommand( else if (Cmd == GdiBCTextOut) cjSize = sizeof(GDIBSTEXTOUT); else if (Cmd == GdiBCExtTextOut) cjSize = sizeof(GDIBSEXTTEXTOUT); else if (Cmd == GdiBCSetBrushOrg) cjSize = sizeof(GDIBSSETBRHORG); - else if (Cmd == GdiBCExtSelClipRgn) cjSize = 0; + else if (Cmd == GdiBCExtSelClipRgn) cjSize = sizeof(GDIBSEXTSELCLPRGN); else if (Cmd == GdiBCSelObj) cjSize = sizeof(GDIBSOBJECT); else if (Cmd == GdiBCDelRgn) cjSize = sizeof(GDIBSOBJECT); else if (Cmd == GdiBCDelObj) cjSize = sizeof(GDIBSOBJECT); diff --git a/win32ss/gdi/ntgdi/dclife.c b/win32ss/gdi/ntgdi/dclife.c index 3f256396727..99d872a9c2f 100644 --- a/win32ss/gdi/ntgdi/dclife.c +++ b/win32ss/gdi/ntgdi/dclife.c @@ -950,7 +950,7 @@ APIENTRY NtGdiDeleteObjectApp(HANDLE hobj) { /* Complete all pending operations */ - NtGdiFlushUserBatch(); // FIXME: We shouldn't need this + //NtGdiFlushUserBatch(); // FIXME: We shouldn't need this if (GDI_HANDLE_IS_STOCKOBJ(hobj)) return TRUE; -- 2.17.1