VirtualBox

Ignore:
Timestamp:
Sep 5, 2013 7:27:54 AM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: dumper fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/dump.cpp

    r46515 r48292  
    555555    *pNewLine = '\0';
    556556    *pcbStr = cbStr - (((uintptr_t)pNewLine) - ((uintptr_t)pszStr)) - 1;
    557     Assert((*pcbStr) >= 0);
     557    Assert((*pcbStr) < UINT32_MAX/2);
    558558    Assert((*pcbStr) < cbStr);
    559559    *ppszStr = pNewLine + 1;
     
    14211421}
    14221422
     1423#ifdef RT_OS_WINDOWS
    14231424static void crDmpPrint(const char* szString, ...)
    14241425{
     
    14541455    OutputDebugStringA(pszStr);
    14551456}
     1457#endif
    14561458
    14571459static void crDmpHtmlDumpStrExact(struct CR_HTML_DUMPER * pDumper, const char *pszStr)
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