Changeset 17810 in vbox
- Timestamp:
- Mar 13, 2009 11:28:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r17737 r17810 1401 1401 HRESULT rc = S_OK; 1402 1402 1403 Bstr bstrInKey(aKey); 1404 1403 1405 /* serialize file access (prevent writes) */ 1404 1406 AutoReadLock alock (this); … … 1431 1433 1432 1434 /* if we're supposed to return the first one */ 1433 if ( aKey == NULL)1435 if (bstrInKey.isEmpty()) 1434 1436 { 1435 1437 key.cloneTo (aNextKey); … … 1443 1445 1444 1446 /* did we find the key we're looking for? */ 1445 if (key == aKey)1447 if (key == bstrInKey) 1446 1448 { 1447 1449 ++ it; … … 1470 1472 * through to return NULLs and S_OK. */ 1471 1473 1472 if ( aKey != NULL)1474 if (!bstrInKey.isEmpty()) 1473 1475 return setError (VBOX_E_OBJECT_NOT_FOUND, 1474 tr ("Could not find the extra data key '%ls'"), aKey);1476 tr("Could not find the extra data key '%ls'"), bstrInKey.raw()); 1475 1477 } 1476 1478 catch (...)
Note:
See TracChangeset
for help on using the changeset viewer.