Lines Matching refs:vrc
135 int vrc = RTStrUtf8ToCurrentCP(&mCompRegLocation, aCompRegLocation);
136 if (RT_SUCCESS(vrc))
137 vrc = RTStrUtf8ToCurrentCP(&mXPTIDatLocation, aXPTIDatLocation);
138 if (RT_SUCCESS(vrc) && aComponentDirLocation)
139 vrc = RTStrUtf8ToCurrentCP(&mComponentDirLocation, aComponentDirLocation);
140 if (RT_SUCCESS(vrc) && aCurrProcDirLocation)
141 vrc = RTStrUtf8ToCurrentCP(&mCurrProcDirLocation, aCurrProcDirLocation);
143 return RT_SUCCESS(vrc) ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
334 int vrc = GetVBoxUserHomeDirectory(szCompReg, sizeof(szCompReg));
335 if (vrc == VERR_ACCESS_DENIED)
337 AssertRCReturn(vrc, NS_ERROR_FAILURE);
338 vrc = RTStrCopy(szXptiDat, sizeof(szXptiDat), szCompReg);
339 AssertRCReturn(vrc, NS_ERROR_FAILURE);
341 vrc = RTPathAppend(szCompReg, sizeof(szCompReg), "compreg-x86.dat");
342 AssertRCReturn(vrc, NS_ERROR_FAILURE);
343 vrc = RTPathAppend(szXptiDat, sizeof(szXptiDat), "xpti-x86.dat");
344 AssertRCReturn(vrc, NS_ERROR_FAILURE);
346 vrc = RTPathAppend(szCompReg, sizeof(szCompReg), "compreg.dat");
347 AssertRCReturn(vrc, NS_ERROR_FAILURE);
348 vrc = RTPathAppend(szXptiDat, sizeof(szXptiDat), "xpti.dat");
349 AssertRCReturn(vrc, NS_ERROR_FAILURE);
376 vrc = RTEnvGetEx(RTENV_DEFAULT, "VBOX_APP_HOME", szAppHomeDir, sizeof(szAppHomeDir), NULL);
377 if (vrc == VERR_ENV_VAR_NOT_FOUND)
379 AssertRC(vrc);
384 vrc = RTPathAppPrivateArch(szAppHomeDir, sizeof(szAppHomeDir));
385 AssertRC(vrc);
393 vrc = RTPathAppPrivateArch(szAppHomeDir, sizeof(szAppHomeDir));
394 AssertRC(vrc);
395 vrc = RTPathStripTrailingSlash(szAppHomeDir);
396 AssertRC(vrc);
407 vrc = VINF_SUCCESS;
409 if (RT_FAILURE(vrc))
415 vrc = RTStrCopy(szCompDir, sizeof(szCompDir), szAppHomeDir);
416 if (RT_FAILURE(vrc))
421 vrc = RTPathAppend(szCompDir, sizeof(szCompDir), "components");
422 if (RT_FAILURE(vrc))
446 vrc = RTStrUtf8ToCurrentCP(&appDirCP, szAppHomeDir);
447 if (RT_SUCCESS(vrc))
465 vrc = RTEnvSetEx(RTENV_DEFAULT, "VBOX_XPCOM_HOME", szAppHomeDir);
466 AssertRC(vrc);