bitsdojo_window
bitsdojo_window copied to clipboard
Has use xinshuru Input Method(手心输入法), and bitsdojo_window will crash when it runs
env: windows10 64bit , xinshuru Input Method(手心输入法)
i will slove it in bitsdojo_window.cpp
if (!createParams->lpcs->lpCreateParams)
{
return 0;
}
// if null pointer will return
**if (!createParams->lpcs->lpszClass) {
return 0;
}
if (!createParams->lpcs->lpszName) {
return 0;
}**
if (wcscmp(createParams->lpcs->lpszClass, L"FLUTTER_RUNNER_WIN32_WINDOW") == 0)
{
flutter_window = (HWND)wparam;
SetWindowSubclass(flutter_window, main_window_proc, 1, NULL);
}
isMemoryValid(createParams->lpcs->lpszClass) use VirtualQuery, check memory valid can solve this question on windows.