aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/wince/CEDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/wince/CEDevice.cpp b/backends/wince/CEDevice.cpp
index 68c559da59..d0236cbf72 100644
--- a/backends/wince/CEDevice.cpp
+++ b/backends/wince/CEDevice.cpp
@@ -64,7 +64,7 @@ bool CEDevice::enableHardwareKeyMapping() {
GAPIOpenInput();
_portrait_keys = GAPIGetDefaultKeys(GX_NORMALKEYS);
_hasGAPIMapping = true;
- CloseHandle(GAPI_handle);
+ FreeLibrary(GAPI_handle);
return true;
}
@@ -79,7 +79,7 @@ bool CEDevice::disableHardwareKeyMapping() {
if (!GAPICloseInput)
return false;
GAPICloseInput();
- CloseHandle(GAPI_handle);
+ FreeLibrary(GAPI_handle);
return true;
}