VirtualBox

Changeset 66352 in vbox for trunk


Ignore:
Timestamp:
Mar 30, 2017 9:49:14 AM (8 years ago)
Author:
vboxsync
Message:

VBoxProxyStub.c: fQuoteIt confusion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/win/VBoxProxyStub.c

    r66280 r66352  
    11961196    LSTATUS rc;
    11971197    char szClsId[CURLY_UUID_STR_BUF_SIZE];
    1198     bool fQuoteIt = false;
    11991198    RT_NOREF(pszAppId);
    12001199
     
    12291228        if (rc == ERROR_SUCCESS)
    12301229        {
     1230            bool const fIsLocalServer32 = strcmp(pszServerType, "LocalServer32") == 0;
    12311231            HKEY hkeyServerType;
    12321232            char szCurClassNameVer[128];
     
    12381238                RTUTF16 wszModule[MAX_PATH * 2];
    12391239                PRTUTF16 pwszCur = wszModule;
    1240                 fQuoteIt = strcmp(pszServerType, "LocalServer32") == 0;
    1241                 if (fQuoteIt)
     1240                if (fIsLocalServer32)
    12421241                    *pwszCur++ = '"';
    12431242
     
    12471246                pwszCur += RTUtf16Len(pwszCur);
    12481247
    1249                 if (fQuoteIt)
     1248                if (fIsLocalServer32)
    12501249                    *pwszCur++ = '"';
    12511250                *pwszCur++ = '\0';      /* included, so ++. */
     
    12831282
    12841283            /* AppID = pszAppId */
    1285             if (pszAppId && fQuoteIt)
     1284            if (pszAppId && fIsLocalServer32)
    12861285                vbpsSetRegValueAA(pState, hkeyClass, "AppID", pszAppId, __LINE__);
    12871286
     
    13171316        &LIBID_VirtualBox, "LocalServer32", pwszVBoxDir, pszWindowsService, NULL /*N/A*/);
    13181317}
    1319 #endif
     1318#endif /* VBOX_WITH_SDS */
     1319
    13201320
    13211321/**
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