mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:23:01 +00:00
[MSCTF][CICERO][DOC] Fork MSCTF from Wine (#8245)
JIRA issue: CORE-19361 - Delete msctf.c and add msctf.cpp. - Modify precomp.h and enable precompiled header. - Modify media/doc/WINESYNC.txt. - Add cicMemReCalloc function to cicero.
This commit is contained in:
parent
853b446e38
commit
a18a5734ac
22 changed files with 539 additions and 759 deletions
|
@ -38,6 +38,25 @@ void operator delete[](void* ptr, size_t size) noexcept
|
|||
cicMemFree(ptr);
|
||||
}
|
||||
|
||||
LPVOID cicMemReCalloc(LPVOID mem, SIZE_T num, SIZE_T size) noexcept
|
||||
{
|
||||
SIZE_T old_size, new_size = num * size;
|
||||
LPVOID ret;
|
||||
|
||||
if (!mem)
|
||||
return cicMemAllocClear(new_size);
|
||||
|
||||
old_size = LocalSize(mem);
|
||||
ret = cicMemReAlloc(mem, new_size);
|
||||
if (!ret)
|
||||
return NULL;
|
||||
|
||||
if (new_size > old_size)
|
||||
ZeroMemory((PBYTE)ret + old_size, new_size - old_size);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
// FIXME
|
||||
typedef enum _PROCESSINFOCLASS
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue