UsbDkHelper: Fix unhandled exception in case of error

Type of exception should comply to throw type.

Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
Pavel Gurvich 2014-02-10 12:27:03 +02:00 • committed by Dmitry Fleytman
parent 6c578fdc31
commit c9d093ab2d

View file

@ -39,9 +39,9 @@ InstallResult UsbDkInstaller::Install()
addUsbDkToRegistry();
}
catch (exception *e)
catch(const exception &e)
{
wstring wString = __string2wstring(string(e->what()));
wstring wString = __string2wstring(string(e.what()));
OutputDebugString(wString.c_str());
return InstallFailure;
}
@ -67,9 +67,9 @@ bool UsbDkInstaller::Uninstall()
m_wdfCoinstaller.PostDeviceRemove(infFilePath);
}
catch (exception *e)
catch (const exception &e)
{
wstring wString = __string2wstring(string(e->what()));
wstring wString = __string2wstring(string(e.what()));
OutputDebugString(wString.c_str());
return false;
}