mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[IMM32] s/CopyMemory/RtlCopyMemory/
CORE-19268
This commit is contained in:
parent
c00d41d91c
commit
fb642f727f
1 changed files with 3 additions and 3 deletions
|
@ -135,7 +135,7 @@ HBITMAP Imm32LoadBitmapFromBytes(const BYTE *pb)
|
||||||
DeleteObject(hbm);
|
DeleteObject(hbm);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
CopyMemory(pvBits, pb, bm.bmWidthBytes * bm.bmHeight);
|
RtlCopyMemory(pvBits, pb, bm.bmWidthBytes * bm.bmHeight);
|
||||||
|
|
||||||
return hbm;
|
return hbm;
|
||||||
}
|
}
|
||||||
|
@ -196,10 +196,10 @@ BOOL Imm32StoreBitmapToBytes(HBITMAP hbm, LPBYTE pbData, DWORD cbDataMax)
|
||||||
*(LPDWORD)pb = cbBytes;
|
*(LPDWORD)pb = cbBytes;
|
||||||
pb += sizeof(DWORD);
|
pb += sizeof(DWORD);
|
||||||
|
|
||||||
CopyMemory(pb, &bmci.bmciHeader, sizeof(BITMAPCOREHEADER));
|
RtlCopyMemory(pb, &bmci.bmciHeader, sizeof(BITMAPCOREHEADER));
|
||||||
pb += sizeof(BITMAPCOREHEADER);
|
pb += sizeof(BITMAPCOREHEADER);
|
||||||
|
|
||||||
CopyMemory(pb, &bmci.bmciColors, cColors * sizeof(RGBTRIPLE));
|
RtlCopyMemory(pb, &bmci.bmciColors, cColors * sizeof(RGBTRIPLE));
|
||||||
pb += cColors * sizeof(RGBTRIPLE);
|
pb += cColors * sizeof(RGBTRIPLE);
|
||||||
|
|
||||||
ret = GetDIBits(hDC, hbm, 0, bm.bmHeight, pb, (LPBITMAPINFO)&bmci, DIB_RGB_COLORS);
|
ret = GetDIBits(hDC, hbm, 0, bm.bmHeight, pb, (LPBITMAPINFO)&bmci, DIB_RGB_COLORS);
|
||||||
|
|
Loading…
Reference in a new issue