Changeset 19239 in vbox for trunk/src/VBox/Main/win
- Timestamp:
- Apr 28, 2009 1:19:14 PM (16 years ago)
- Location:
- trunk/src/VBox/Main/win
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/win/NetIf-win.cpp
r19233 r19239 1025 1025 if(hr == S_OK) 1026 1026 { 1027 GUIDIfGuid;1028 hr = pIf->COMGETTER(Id)( &IfGuid);1027 Bstr IfGuid; 1028 hr = pIf->COMGETTER(Id)(IfGuid.asOutParam()); 1029 1029 Assert(hr == S_OK); 1030 1030 if (hr == S_OK) … … 1156 1156 #else 1157 1157 HRESULT rc; 1158 GUIDguid;1159 rc = pIf->COMGETTER(Id) ( &guid);1158 Bstr guid; 1159 rc = pIf->COMGETTER(Id) (guid.asOutParam()); 1160 1160 if(SUCCEEDED(rc)) 1161 1161 { … … 1185 1185 1186 1186 d->msgCode = SVCHlpMsg::EnableStaticIpConfig; 1187 d->guid = guid;1187 d->guid = Guid(guid); 1188 1188 d->iface = pIf; 1189 1189 d->u.StaticIP.IPAddress = ip; … … 1218 1218 #else 1219 1219 HRESULT rc; 1220 GUIDguid;1221 rc = pIf->COMGETTER(Id) ( &guid);1220 Bstr guid; 1221 rc = pIf->COMGETTER(Id) (guid.asOutParam()); 1222 1222 if(SUCCEEDED(rc)) 1223 1223 { … … 1280 1280 #else 1281 1281 HRESULT rc; 1282 GUIDguid;1283 rc = pIf->COMGETTER(Id) ( &guid);1282 Bstr guid; 1283 rc = pIf->COMGETTER(Id) (guid.asOutParam()); 1284 1284 if(SUCCEEDED(rc)) 1285 1285 { … … 1340 1340 #else 1341 1341 HRESULT rc; 1342 GUIDguid;1343 rc = pIf->COMGETTER(Id) ( &guid);1342 Bstr guid; 1343 rc = pIf->COMGETTER(Id) (guid.asOutParam()); 1344 1344 if(SUCCEEDED(rc)) 1345 1345 { -
trunk/src/VBox/Main/win/dllmain.cpp
r8155 r19239 28 28 #include <atlcom.h> 29 29 30 #include <iprt/initterm.h> 31 30 32 CComModule _Module; 31 33 … … 44 46 _Module.Init(ObjectMap, hInstance, &LIBID_VirtualBox); 45 47 DisableThreadLibraryCalls(hInstance); 48 49 // idempotent, so doesn't harm, and needed for COM embedding scenario 50 RTR3Init(); 46 51 } 47 52 else if (dwReason == DLL_PROCESS_DETACH) -
trunk/src/VBox/Main/win/svchlp.cpp
r18488 r19239 248 248 int vrc = read (guidStr); 249 249 if (RT_SUCCESS (vrc)) 250 aGuid = Guid (guidStr );250 aGuid = Guid (guidStr.c_str()); 251 251 return vrc; 252 252 }
Note:
See TracChangeset
for help on using the changeset viewer.