From 6b91c6d3f664535ab31a9038ada1db11c83bf5cc Mon Sep 17 00:00:00 2001 From: Zlocorp Date: Wed, 28 Oct 2020 23:14:51 +0300 Subject: [PATCH] Fix COM Error on startup (fix path) --- source/Portable-VirtualBox.au3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Portable-VirtualBox.au3 b/source/Portable-VirtualBox.au3 index 4606159..169a84f 100644 --- a/source/Portable-VirtualBox.au3 +++ b/source/Portable-VirtualBox.au3 @@ -1884,11 +1884,11 @@ Func HybridMode() EndFunc ; Set VBOX_USER_HOME to our portable directory. - 646 -; Unset VBOX_USER_HOME when closed. - 743 +; Unset VBOX_USER_HOME when closed. - 773 ; Create it first if it doesn't exist or VirtualBox.exe will fail to load. Func SetHomeDir($action) ;local $userHome = @ScriptDir & IniRead ($var1, "userhome", "key", "NotFound") - local $userHome = "data\.VirtualBox" + local $userHome = @ScriptDir & "\data\.VirtualBox" If $action = 'set' Then If NOT FileExists ($userHome) Then DirCreate ($userHome)