VirtualBox

Changeset 78193 in vbox for trunk/src


Ignore:
Timestamp:
Apr 18, 2019 12:34:04 AM (6 years ago)
Author:
vboxsync
Message:

Some build fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_shaders.cpp

    r78190 r78193  
    453453
    454454    size_t cchStr = CHECK_STRING_FROM_PTR_UPDATE_NO_RETURN(pState, name);
    455     if (RT_UNLIKELY(cchStr == SIZE_MAX || packet_length != cchStr + 2 * sizeof(CRNetworkPointer)))
     455    if (RT_UNLIKELY(cchStr == ~(size_t)0 || packet_length != cchStr + 2 * sizeof(CRNetworkPointer)))
    456456    {
    457457        crError("crUnpackExtendGetAttribLocation: packet_length is corrupt");
     
    474474
    475475    size_t cchStr = CHECK_STRING_FROM_PTR_UPDATE_NO_RETURN(pState, name);
    476     if (RT_UNLIKELY(cchStr == SIZE_MAX || packet_length != cchStr + 2 * sizeof(CRNetworkPointer)))
     476    if (RT_UNLIKELY(cchStr == ~(size_t)0 || packet_length != cchStr + 2 * sizeof(CRNetworkPointer)))
    477477    {
    478478        crError("crUnpackExtendGetUniformLocation: packet_length is corrupt");
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