[WIN32K] -NtGdiGetRegionData: prgn->rdh.nRgnSize is the size of kernel mode buffer...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Tue, 4 Apr 2017 10:07:07 +0000 (10:07 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Tue, 4 Apr 2017 10:07:07 +0000 (10:07 +0000)
svn path=/trunk/; revision=74275

reactos/win32ss/gdi/ntgdi/region.c

index 5c47ca6..13fae9e 100644 (file)
@@ -4105,6 +4105,7 @@ NtGdiGetRegionData(
                 RtlCopyMemory(lpRgnData, &prgn->rdh, sizeof(RGNDATAHEADER));
                 RtlCopyMemory(lpRgnData->Buffer, prgn->Buffer, cjRects);
                 lpRgnData->rdh.iType = RDH_RECTANGLES;
                 RtlCopyMemory(lpRgnData, &prgn->rdh, sizeof(RGNDATAHEADER));
                 RtlCopyMemory(lpRgnData->Buffer, prgn->Buffer, cjRects);
                 lpRgnData->rdh.iType = RDH_RECTANGLES;
+                lpRgnData->rdh.nRgnSize = cjRects;
             }
             _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
             {
             }
             _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
             {