VirtualBox

Changeset 82617 in vbox


Ignore:
Timestamp:
Dec 18, 2019 2:05:56 PM (5 years ago)
Author:
vboxsync
Message:

Windows Additions/tstWinAdditionsInstallHelper: Also check if something has been returned on the stack to detect NSIS API failures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/testcase/tstWinAdditionsInstallHelper.cpp

    r82616 r82617  
    152152
    153153                char *pszStack = tstStackPopString(&pStack);
    154                 RTTestIPrintf(RTTESTLVL_ALWAYS, "Arch: %s\n", pszStack);
     154                if (pszStack)
     155                    RTTestIPrintf(RTTESTLVL_ALWAYS, "Arch: %s\n", pszStack);
     156                else
     157                    RTTestIFailed("Getting file arch failed (NSIS API changed?)\n");
    155158                RTStrFree(pszStack);
    156159                tstStackDestroy(pStack);
     
    167170                pfnFileGetVendor(NULL /* hWnd */, NSIS_MAX_STRLEN, szVars, &pStack, NULL /* extra */);
    168171                char *pszStack = tstStackPopString(&pStack);
    169                 RTTestIPrintf(RTTESTLVL_ALWAYS, "Vendor: %s\n", pszStack);
     172                if (pszStack)
     173                    RTTestIPrintf(RTTESTLVL_ALWAYS, "Vendor: %s\n", pszStack);
     174                else
     175                    RTTestIFailed("Getting file vendor failed (NSIS API changed?)\n");
    170176                RTStrFree(pszStack);
    171177                tstStackDestroy(pStack);
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