win32: task Z1793 - in this case - it is better to be paranoiac
@@ -26,6 +26,7 @@ class CKeyboardSingleton: public CKeyboardSingletonBase
Hashtable<String, String> hashRes;
bool isOk = true;
#ifdef OS_WINDOWS_DESKTOP
+ try {
if (isOpen){
void *was;
Wow64DisableWow64FsRedirection (&was);
@@ -42,12 +43,9 @@ class CKeyboardSingleton: public CKeyboardSingletonBase
}else{
isOk = false;
}
- /*void *was;
- Wow64DisableWow64FsRedirection (&was);
- ShellExecuteA(NULL, "open", "tskill", "osk", NULL, SW_HIDE);
-
- Wow64RevertWow64FsRedirection (was);*/
-
+ }
+ }catch (...) {
+ isOpen = false;
}
#endif
if (isOk) {hashRes["status"] = "ok";}
