Commit 7cfb1f22 authored by mercury233's avatar mercury233

fix

parent e899f77f
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "IGUIEnvironment.h" #include "IGUIEnvironment.h"
#include "IGUIElement.h" #include "IGUIElement.h"
#include <winuser.h> #include <winuser.h>
#include <imm.h>
#if defined(_IRR_COMPILE_WITH_JOYSTICK_EVENTS_) #if defined(_IRR_COMPILE_WITH_JOYSTICK_EVENTS_)
#ifdef _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_ #ifdef _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_
#define DIRECTINPUT_VERSION 0x0800 #define DIRECTINPUT_VERSION 0x0800
...@@ -997,10 +998,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) ...@@ -997,10 +998,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
} }
delete[] buffer; delete[] buffer;
}
ImmReleaseContext(hWnd, hIMC);
// Remove GCS_RESULTSTR to prevent DefWindowProc from generating WM_IME_CHAR // Remove GCS_RESULTSTR to prevent DefWindowProc from generating WM_IME_CHAR
lParam &= ~GCS_RESULTSTR; lParam &= ~GCS_RESULTSTR;
}
ImmReleaseContext(hWnd, hIMC);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment