Changeset 47 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jan 15, 2007 6:29:09 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 17476
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VM.cpp
r23 r47 97 97 *******************************************************************************/ 98 98 static int vmR3Create(PVM pVM, PFNVMATERROR pfnVMAtError, void *pvUserVM, PFNCFGMCONSTRUCTOR pfnCFGMConstructor, void *pvUserCFGM); 99 static void vmR3CallVMAtError(PFNVMATERROR pfnVMAtError, void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszError, ...); 99 100 static int vmR3InitRing3(PVM pVM); 100 101 static int vmR3InitRing0(PVM pVM); … … 301 302 AssertMsgFailed(("Add error message for rc=%d (%Vrc)\n", rc, rc)); 302 303 } 303 pfnVMAtError(NULL, pvUserVM, rc, RT_SRC_POS, pszError, (va_list)&rc); /** @todo r=bird: this isn't portable to AMD64, please fix. */304 vmR3CallVMAtError(pfnVMAtError, pvUserVM, rc, RT_SRC_POS, pszError, rc); 304 305 } 305 306 … … 307 308 return rc; 308 309 } 310 311 312 /** 313 * Wrapper for getting a correct va_list. 314 */ 315 static void vmR3CallVMAtError(PFNVMATERROR pfnVMAtError, void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszError, ...) 316 { 317 va_list va; 318 va_start(va, pszError); 319 pfnVMAtError(NULL, pvUser, rc, RT_SRC_POS_ARGS, pszError, va); 320 va_end(va); 321 } 322 309 323 310 324 /**
Note:
See TracChangeset
for help on using the changeset viewer.