VirtualBox

Ignore:
Timestamp:
Jan 10, 2012 11:28:17 AM (13 years ago)
Author:
vboxsync
Message:

coOpenGL: followup to fix XP hosts, bugs #10071 and #10088

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c

    r39735 r39736  
    206206        {
    207207            DWORD cbCur = cbBufRemain;
     208            DWORD type;
    208209            lRc = RegQueryValueExA(hSubkey, aValueNames[i], NULL, /* reserved*/
    209                     REG_MULTI_SZ,
     210                    &type,
    210211                    (PBYTE)pBufPos, &cbCur);
    211212            /* exclude second null termination */
     
    214215            if (ERROR_MORE_DATA == lRc)
    215216            {
     217                if (REG_MULTI_SZ != type)
     218                {
     219                    crWarning("unexpected data type! %d", type);
     220                    continue;
     221                }
    216222                rc = VERR_BUFFER_OVERFLOW;
    217223                pBufPos = NULL;
     
    227233            }
    228234
     235            if (REG_MULTI_SZ != type)
     236            {
     237                crWarning("unexpected data type! %d", type);
     238                continue;
     239            }
     240
    229241            /* succeeded */
    230242            CRASSERT(cbCur > 0 && cbCur < UINT32_MAX/2);
     
    275287
    276288    crDebug("renderspuAtiQuirk_ApplyForModule SUCCEEDED!");
    277     crInfo("ATI Fullscreen qwirk for SUCCEEDED!");
     289    crInfo("ATI Fullscreen qwirk SUCCEEDED!");
    278290
    279291    return VINF_SUCCESS;
     
    308320    crDebug("renderspuAtiQuirk_Apply..");
    309321
     322    Assert(0);
    310323    rc = renderspuAtiQuirk_GetICDDriverList(aBuf, sizeof (aBuf), &cbResult);
    311324    if (RT_FAILURE(rc))
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