VirtualBox

Changeset 2271 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Apr 20, 2007 1:01:05 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20631
Message:

bugfix: RTPathReal presumes that the path exists!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r2238 r2271  
    996996            }
    997997            /* resolve it. */
    998             hdaFile = RTPathRealDup(argv[curArg]);
     998            if (RTPathExists(argv[curArg]))
     999                hdaFile = RTPathRealDup(argv[curArg]);
    9991000            if (!hdaFile)
    10001001            {
     
    10131014            }
    10141015            /* resolve it. */
    1015             fdaFile = RTPathRealDup(argv[curArg]);
     1016            if (RTPathExists(argv[curArg]))
     1017                fdaFile = RTPathRealDup(argv[curArg]);
    10161018            if (!fdaFile)
    10171019            {
     
    10301032            }
    10311033            /* resolve it. */
    1032             cdromFile = RTPathRealDup(argv[curArg]);
     1034            if (RTPathExists(argv[curArg]))
     1035                cdromFile = RTPathRealDup(argv[curArg]);
    10331036            if (!cdromFile)
    10341037            {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette