aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bacca2004-02-13 12:11:14 +0000
committerNicolas Bacca2004-02-13 12:11:14 +0000
commiteaff620ca0af9f7bf9f812f2936e3c98511eab3e (patch)
treee980aff643ac20aaff3c031905ef82a24a2ffd6e
parentb5dc90acda87927c225619724b49e34d38aee6f7 (diff)
downloadscummvm-rg350-eaff620ca0af9f7bf9f812f2936e3c98511eab3e.tar.gz
scummvm-rg350-eaff620ca0af9f7bf9f812f2936e3c98511eab3e.tar.bz2
scummvm-rg350-eaff620ca0af9f7bf9f812f2936e3c98511eab3e.zip
Proper DLL termination
svn-id: r12853
-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;
}