mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 18:53:05 +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
|
@ -17,19 +17,26 @@ static inline LPVOID cicMemAllocClear(SIZE_T size)
|
|||
return LocalAlloc(LMEM_ZEROINIT, size);
|
||||
}
|
||||
|
||||
static inline LPVOID cicMemReAlloc(LPVOID ptr, SIZE_T newSize)
|
||||
{
|
||||
if (!ptr)
|
||||
return LocalAlloc(LMEM_ZEROINIT, newSize);
|
||||
return LocalReAlloc(ptr, newSize, LMEM_ZEROINIT);
|
||||
}
|
||||
|
||||
static inline void cicMemFree(LPVOID ptr)
|
||||
{
|
||||
if (ptr)
|
||||
LocalFree(ptr);
|
||||
}
|
||||
|
||||
static inline LPVOID cicMemReAlloc(LPVOID ptr, SIZE_T newSize)
|
||||
{
|
||||
if (!newSize)
|
||||
{
|
||||
cicMemFree(ptr);
|
||||
return NULL;
|
||||
}
|
||||
if (!ptr)
|
||||
return LocalAlloc(LMEM_ZEROINIT, newSize);
|
||||
return LocalReAlloc(ptr, newSize, LMEM_ZEROINIT | LMEM_MOVEABLE);
|
||||
}
|
||||
|
||||
LPVOID cicMemReCalloc(LPVOID mem, SIZE_T num, SIZE_T size) noexcept;
|
||||
|
||||
static inline bool cicIsNullPtr(LPCVOID ptr)
|
||||
{
|
||||
return !ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue