bitsdojo_window icon indicating copy to clipboard operation
bitsdojo_window copied to clipboard

Has use xinshuru Input Method(手心输入法), and bitsdojo_window will crash when it runs

Open chifandeyu opened this issue 3 years ago • 1 comments

env: windows10 64bit , xinshuru Input Method(手心输入法)

chifandeyu avatar Feb 17 '22 16:02 chifandeyu

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);
        }

ljnhst avatar Feb 10 '25 02:02 ljnhst

isMemoryValid(createParams->lpcs->lpszClass) use VirtualQuery, check memory valid can solve this question on windows.

ljnhst avatar Jun 27 '25 01:06 ljnhst