Win32: Remove needless cast

This commit is contained in:
Takuro Ashie 2022-04-15 15:24:05 +09:00 committed by Daijiro Fukuda
parent b9223f114d
commit 9b22e781ca

View File

@ -559,9 +559,9 @@ static GLFWbool getImmPreedit(_GLFWwindow* window)
int cblocks = window->cblocks;
int focusedBlock = 0;
int length = preeditBytes / sizeof(WCHAR);
LPWSTR buffer = (LPWSTR) _glfw_calloc(preeditBytes, 1);
LPSTR attributes = (LPSTR) _glfw_calloc(attrBytes, 1);
DWORD *clauses = (DWORD*) _glfw_calloc(clauseBytes, 1);
LPWSTR buffer = _glfw_calloc(preeditBytes, 1);
LPSTR attributes = _glfw_calloc(attrBytes, 1);
DWORD *clauses = _glfw_calloc(clauseBytes, 1);
// get preedit data
ImmGetCompositionStringW(hIMC, GCS_COMPSTR, buffer, preeditBytes);