diff --git a/reactos/win32ss/gdi/ntgdi/dibobj.c b/reactos/win32ss/gdi/ntgdi/dibobj.c index 0b7eac1fede..dc42ad6e7bc 100644 --- a/reactos/win32ss/gdi/ntgdi/dibobj.c +++ b/reactos/win32ss/gdi/ntgdi/dibobj.c @@ -1051,7 +1051,7 @@ NtGdiGetDIBitsInternal( { /* Probe and copy the BITMAPINFO */ ProbeForRead(pbmi, cjMaxInfo, 1); - RtlCopyMemory(pbmi, pbmi, cjMaxInfo); + RtlCopyMemory(pbmiSafe, pbmi, cjMaxInfo); } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) {