VirtualBox

Changeset 34544 in vbox for trunk/src


Ignore:
Timestamp:
Dec 1, 2010 8:29:17 AM (14 years ago)
Author:
vboxsync
Message:

Windows installer: corrected misinterpretation of the nSize parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxDrvInst.cpp

    r33540 r34544  
    264264bool GetErrorMsg (DWORD a_dwLastError, _TCHAR* a_pszMsg, DWORD a_dwBufSize)
    265265{
    266     if (::FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, a_dwLastError, 0, a_pszMsg, a_dwBufSize, NULL) == 0)
     266    if (::FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, a_dwLastError, 0, a_pszMsg, a_dwBufSize / sizeof(TCHAR), NULL) == 0)
    267267    {
    268268        _stprintf(a_pszMsg, _T("Unknown error!\n"), a_dwLastError);
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