win_runtime_error moved to WinStd; eapxml functions return HRESULT now

This commit is contained in:
2016-08-09 01:05:00 +02:00
parent b71e30f642
commit 1bf51fda25
23 changed files with 315 additions and 454 deletions

View File

@@ -86,8 +86,8 @@ static int CredWrite()
eap::credentials_pap cred_stored(g_module);
try {
cred_stored.retrieve(target_name.c_str());
} catch(eap::win_runtime_error &err) {
OutputDebugStr(_T("%ls (error %u)\n"), err.m_msg.c_str(), err.m_error);
} catch(win_runtime_error &err) {
OutputDebugStr(_T("%hs (error %u)\n"), err.what(), err.number());
} catch(...) {
OutputDebugStr(_T("Reading credentials failed.\n"));
}
@@ -95,8 +95,8 @@ static int CredWrite()
#endif
try {
cred.store(target_name.c_str());
} catch(eap::win_runtime_error &err) {
OutputDebugStr(_T("%ls (error %u)\n"), err.m_msg.c_str(), err.m_error);
} catch(win_runtime_error &err) {
OutputDebugStr(_T("%hs (error %u)\n"), err.what(), err.number());
return 2;
} catch(...) {
OutputDebugStr(_T("Writing credentials failed.\n"));