Changeset 27668 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 24, 2010 2:45:55 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59248
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r27607 r27668 1074 1074 id.create(); 1075 1075 1076 GuestOSType *osType ;1077 rc = findGuestOSType( aOsTypeId, osType);1076 GuestOSType *osType = NULL; 1077 rc = findGuestOSType(Bstr(aOsTypeId), osType); 1078 1078 if (FAILED(rc)) return rc; 1079 1079 … … 1129 1129 id.create(); 1130 1130 1131 GuestOSType *osType ;1132 rc = findGuestOSType( aOsTypeId, osType);1131 GuestOSType *osType = NULL; 1132 rc = findGuestOSType(Bstr(aOsTypeId), osType); 1133 1133 if (FAILED(rc)) return rc; 1134 1134 … … 3035 3035 } 3036 3036 3037 HRESULT VirtualBox::findGuestOSType( CBSTRbstrOSType,3037 HRESULT VirtualBox::findGuestOSType(const Bstr &bstrOSType, 3038 3038 GuestOSType*& pGuestOSType) 3039 3039 { … … 3042 3042 ("Guest OS types array must be filled")); 3043 3043 3044 if (bstrOSType == NULL)3044 if (bstrOSType.isEmpty()) 3045 3045 { 3046 3046 pGuestOSType = NULL; … … 3062 3062 return setError(VBOX_E_OBJECT_NOT_FOUND, 3063 3063 tr("Guest OS type '%ls' is invalid"), 3064 bstrOSType );3064 bstrOSType.raw()); 3065 3065 } 3066 3066 -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r27256 r27668 253 253 bool aSetError, ComObjPtr<Medium> *aImage = NULL); 254 254 255 HRESULT findGuestOSType( CBSTRbstrOSType,255 HRESULT findGuestOSType(const Bstr &bstrOSType, 256 256 GuestOSType*& pGuestOSType); 257 257
Note:
See TracChangeset
for help on using the changeset viewer.