[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:
Katayama Hirofumi MZ 2025-07-13 18:30:42 +09:00 committed by GitHub
parent 853b446e38
commit a18a5734ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 539 additions and 759 deletions

View file

@ -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
{