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:
parent
6c578fdc31
commit
c9d093ab2d
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue