https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fb642f727fa883645d4e6…
commit fb642f727fa883645d4e61ade79d62949ea75ac5
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Nov 27 16:21:34 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Mon Nov 27 16:21:34 2023 +0900
[IMM32] s/CopyMemory/RtlCopyMemory/
CORE-19268
---
dll/win32/imm32/utils.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dll/win32/imm32/utils.c b/dll/win32/imm32/utils.c
index cd7cfd56bd2..09eef47e7b5 100644
--- a/dll/win32/imm32/utils.c
+++ b/dll/win32/imm32/utils.c
@@ -135,7 +135,7 @@ HBITMAP Imm32LoadBitmapFromBytes(const BYTE *pb)
DeleteObject(hbm);
return NULL;
}
- CopyMemory(pvBits, pb, bm.bmWidthBytes * bm.bmHeight);
+ RtlCopyMemory(pvBits, pb, bm.bmWidthBytes * bm.bmHeight);
return hbm;
}
@@ -196,10 +196,10 @@ BOOL Imm32StoreBitmapToBytes(HBITMAP hbm, LPBYTE pbData, DWORD
cbDataMax)
*(LPDWORD)pb = cbBytes;
pb += sizeof(DWORD);
- CopyMemory(pb, &bmci.bmciHeader, sizeof(BITMAPCOREHEADER));
+ RtlCopyMemory(pb, &bmci.bmciHeader, sizeof(BITMAPCOREHEADER));
pb += sizeof(BITMAPCOREHEADER);
- CopyMemory(pb, &bmci.bmciColors, cColors * sizeof(RGBTRIPLE));
+ RtlCopyMemory(pb, &bmci.bmciColors, cColors * sizeof(RGBTRIPLE));
pb += cColors * sizeof(RGBTRIPLE);
ret = GetDIBits(hDC, hbm, 0, bm.bmHeight, pb, (LPBITMAPINFO)&bmci,
DIB_RGB_COLORS);