mirror of
https://github.com/reactos/reactos.git
synced 2024-12-04 08:53:32 +08:00
parent
5d81de7d5b
commit
ed765b7c3b
@ -75,7 +75,7 @@ extern PIMEDPI g_pImeDpiList;
|
||||
extern PSERVERINFO gpsi;
|
||||
extern SHAREDINFO g_SharedInfo;
|
||||
extern BYTE g_bClientRegd;
|
||||
extern HANDLE pImmHeap;
|
||||
extern HANDLE ghImmHeap;
|
||||
|
||||
BOOL Imm32GetSystemLibraryPath(LPWSTR pszPath, DWORD cchPath, LPCWSTR pszFileName);
|
||||
VOID APIENTRY LogFontAnsiToWide(const LOGFONTA *plfA, LPLOGFONTW plfW);
|
||||
@ -85,7 +85,7 @@ LPVOID FASTCALL ValidateHandleNoErr(HANDLE hObject, UINT uType);
|
||||
BOOL APIENTRY Imm32CheckImcProcess(PIMC pIMC);
|
||||
|
||||
LPVOID APIENTRY ImmLocalAlloc(DWORD dwFlags, DWORD dwBytes);
|
||||
#define ImmLocalFree(lpData) HeapFree(pImmHeap, 0, (lpData))
|
||||
#define ImmLocalFree(lpData) HeapFree(ghImmHeap, 0, (lpData))
|
||||
|
||||
LPWSTR APIENTRY Imm32WideFromAnsi(LPCSTR pszA);
|
||||
LPSTR APIENTRY Imm32AnsiFromWide(LPCWSTR pszW);
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(imm);
|
||||
|
||||
HANDLE pImmHeap = NULL;
|
||||
HANDLE ghImmHeap = NULL; // Win: pImmHeap
|
||||
|
||||
HRESULT APIENTRY
|
||||
Imm32StrToUInt(LPCWSTR pszText, LPDWORD pdwValue, ULONG nBase)
|
||||
@ -220,13 +220,13 @@ BOOL APIENTRY Imm32CheckImcProcess(PIMC pIMC)
|
||||
|
||||
LPVOID APIENTRY ImmLocalAlloc(DWORD dwFlags, DWORD dwBytes)
|
||||
{
|
||||
if (!pImmHeap)
|
||||
if (!ghImmHeap)
|
||||
{
|
||||
pImmHeap = RtlGetProcessHeap();
|
||||
if (pImmHeap == NULL)
|
||||
ghImmHeap = RtlGetProcessHeap();
|
||||
if (ghImmHeap == NULL)
|
||||
return NULL;
|
||||
}
|
||||
return HeapAlloc(pImmHeap, dwFlags, dwBytes);
|
||||
return HeapAlloc(ghImmHeap, dwFlags, dwBytes);
|
||||
}
|
||||
|
||||
BOOL APIENTRY
|
||||
|
Loading…
Reference in New Issue
Block a user