VirtualBox

Changeset 42757 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Aug 10, 2012 2:44:08 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79976
Message:

Main/Machine: fix path comparison when detecting whether the VM lives in the expected subdirectory, necessary due to mixing / and \

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r42551 r42757  
    90939093            newConfigDir = configDir;
    90949094            if (   configDir.length() >= groupPlusName.length()
    9095                 && configDir.substr(configDir.length() - groupPlusName.length(), groupPlusName.length()).equals(groupPlusName.c_str()))
     9095                && !RTPathCompare(configDir.substr(configDir.length() - groupPlusName.length(), groupPlusName.length()).c_str(), groupPlusName.c_str()))
    90969096            {
    90979097                newConfigDir = newConfigDir.substr(0, configDir.length() - groupPlusName.length());
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