[commit] r2793 - trunk/GME/Mga
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Mon Apr 5 11:25:47 CDT 2021
Author: ksmyth
Date: Mon Apr 5 11:25:47 2021
New Revision: 2793
Log:
Use COMTHROW to SetErrorInfo
Modified:
trunk/GME/Mga/MgaFolder.cpp
Modified: trunk/GME/Mga/MgaFolder.cpp
==============================================================================
--- trunk/GME/Mga/MgaFolder.cpp Mon Apr 5 11:24:34 2021 (r2792)
+++ trunk/GME/Mga/MgaFolder.cpp Mon Apr 5 11:25:47 2021 (r2793)
@@ -624,7 +624,7 @@
if (relpos_b.Length())
{
if (swscanf(static_cast<const wchar_t*>(relpos_b), L"%d", &relpos) != 1)
- return E_INVALIDARG;
+ COMTHROW(E_INVALIDARG);
}
bool found = false;
@@ -813,7 +813,7 @@
int relpos;
if (sscanf( relpos_str.c_str(), "%d", &relpos) != 1)
- return E_INVALIDARG;
+ COMTHROW(E_INVALIDARG);
// take from the samename_objs map the element at relpos relative position
std::map< objid_type, std::vector<CoreObj> >::iterator ii = samename_objs.begin();
More information about the gme-commit
mailing list