mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 20:22:15 +00:00
Win32: Remove needless cast
This commit is contained in:
parent
b9223f114d
commit
9b22e781ca
@ -559,9 +559,9 @@ static GLFWbool getImmPreedit(_GLFWwindow* window)
|
|||||||
int cblocks = window->cblocks;
|
int cblocks = window->cblocks;
|
||||||
int focusedBlock = 0;
|
int focusedBlock = 0;
|
||||||
int length = preeditBytes / sizeof(WCHAR);
|
int length = preeditBytes / sizeof(WCHAR);
|
||||||
LPWSTR buffer = (LPWSTR) _glfw_calloc(preeditBytes, 1);
|
LPWSTR buffer = _glfw_calloc(preeditBytes, 1);
|
||||||
LPSTR attributes = (LPSTR) _glfw_calloc(attrBytes, 1);
|
LPSTR attributes = _glfw_calloc(attrBytes, 1);
|
||||||
DWORD *clauses = (DWORD*) _glfw_calloc(clauseBytes, 1);
|
DWORD *clauses = _glfw_calloc(clauseBytes, 1);
|
||||||
|
|
||||||
// get preedit data
|
// get preedit data
|
||||||
ImmGetCompositionStringW(hIMC, GCS_COMPSTR, buffer, preeditBytes);
|
ImmGetCompositionStringW(hIMC, GCS_COMPSTR, buffer, preeditBytes);
|
||||||
|
Loading…
Reference in New Issue
Block a user