VirtualBox

Changeset 29208 in vbox for trunk/src/VBox/Main/generic


Ignore:
Timestamp:
May 7, 2010 1:09:51 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61285
Message:

3D/win: make 3D support test work again for VBox install path with spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/generic/OpenGLTest.cpp

    r28800 r29208  
    3838#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
    3939    rc = RTPathAppend(pszVBoxPath, RTPATH_MAX, "VBoxTestOGL.exe");
    40     static char pszVBoxPathArg[RTPATH_MAX];
    41     pszVBoxPathArg[0] = '"';
    42     strcpy(pszVBoxPathArg+1, pszVBoxPath);
    43     char *pszPathEnd = (char *)memchr(pszVBoxPathArg, '\0', RTPATH_MAX);
    44     pszPathEnd[0] = '"';
    45     pszPathEnd[1] = '\0';
    46     papszArgs[0] = pszVBoxPathArg;         /* argv[0] */
    4740#else
    4841    rc = RTPathAppend(pszVBoxPath, RTPATH_MAX, "VBoxTestOGL");
     42#endif
    4943    papszArgs[0] = pszVBoxPath;         /* argv[0] */
    50 #endif
    5144    AssertRCReturn(rc, false);
    5245
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