VirtualBox

Changeset 59811 in vbox


Ignore:
Timestamp:
Feb 25, 2016 3:15:13 AM (9 years ago)
Author:
vboxsync
Message:

supR3HardenedWinReadErrorInfoDevice: Corrected buffer termination so we don't chop off the last part of the msg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp

    r59810 r59811  
    42154215            {
    42164216                memcpy(pszErrorInfo, pszPrefix, cchPrefix);
    4217                 pszErrorInfo[RT_MIN(cbErrorInfo - 1, Ios.Information)] = '\0';
     4217                pszErrorInfo[RT_MIN(cbErrorInfo - 1, cchPrefix + Ios.Information)] = '\0';
    42184218                SUP_DPRINTF(("supR3HardenedWinReadErrorInfoDevice: '%s'", &pszErrorInfo[cchPrefix]));
    42194219            }
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