VirtualBox

Changeset 36330 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Mar 21, 2011 5:20:05 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70661
Message:

VBOXSERVICE_NAME_GLOBAL is confusing, drop it.

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp

    r36328 r36330  
    740740        &&  OSInfoEx.dwPlatformId == VER_PLATFORM_WIN32_NT
    741741        &&  OSInfoEx.dwMajorVersion >= 5 /* NT 5.0 a.k.a W2K */)
    742         hMutexAppRunning = CreateMutex(NULL, FALSE, VBOXSERVICE_NAME_GLOBAL);
     742        hMutexAppRunning = CreateMutex(NULL, FALSE, "Global\\" VBOXSERVICE_NAME);
    743743    else
    744744        hMutexAppRunning = CreateMutex(NULL, FALSE, VBOXSERVICE_NAME);
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h

    r36182 r36330  
    9292typedef VBOXSERVICE const *PCVBOXSERVICE;
    9393
    94 /** The service name (needed for mutex creation on Windows). */
     94/** The service name.
     95 * @note Used on windows to name the service as well as the global mutex. */
    9596#define VBOXSERVICE_NAME            "VBoxService"
    96 #define VBOXSERVICE_NAME_GLOBAL     "Global\\VBoxService"
    9797
    9898#ifdef RT_OS_WINDOWS
Note: See TracChangeset for help on using the changeset viewer.

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