Skip to content

Commit

Permalink
Fix COM Error on startup (fix path)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlocorp committed Oct 28, 2020
1 parent 8bc9b62 commit 6b91c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Portable-VirtualBox.au3
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6b91c6d

Please sign in to comment.