VirtualBox

Changeset 64010 in vbox


Ignore:
Timestamp:
Sep 26, 2016 2:12:52 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110921
Message:

LPT: Unbroke enumeration on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp

    r63218 r64010  
    457457            {
    458458                LogFlow(("ERROR_INSUFF_BUFF = %d. dwBufSz = %d\n", dwErr, cbBuf));
    459                 void *pvNew = RTMemRealloc(pszBuf, RT_MAX(RT_ALIGN_Z(cbBufActual + 16, 64), 256));
     459                cbBuf = RT_MAX(RT_ALIGN_Z(cbBufActual + 16, 64), 256);
     460                void *pvNew = RTMemRealloc(pszBuf, cbBuf);
    460461                if (pvNew)
    461462                    pszBuf = (char *)pvNew;
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