VirtualBox

Changeset 64576 in vbox


Ignore:
Timestamp:
Nov 4, 2016 2:12:04 PM (8 years ago)
Author:
vboxsync
Message:

tabs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/DBGCScreenAscii.cpp

    r64554 r64576  
    186186        if (RT_LIKELY(pThis->pszScreen))
    187187        {
    188                 pThis->paColors  = (PDBGCSCREENCOLOR)RTMemAllocZ(cchWidth * cchHeight * sizeof(DBGCSCREENCOLOR));
    189                 if (RT_LIKELY(pThis->paColors))
    190                 {
     188            pThis->paColors  = (PDBGCSCREENCOLOR)RTMemAllocZ(cchWidth * cchHeight * sizeof(DBGCSCREENCOLOR));
     189            if (RT_LIKELY(pThis->paColors))
     190            {
    191191                memset(pThis->pszScreen, 0, (cchWidth + 1) * cchHeight * sizeof(char));
    192192                /* Initialize the screen with spaces. */
     
    195195                                                      DBGCSCREENCOLOR_DEFAULT);
    196196                *phScreen = pThis;
    197                 }
     197            }
    198198            else
    199199                rc = VERR_NO_MEMORY;
     
    201201            if (RT_FAILURE(rc))
    202202                RTStrFree(pThis->pszScreen);
    203             }
     203        }
    204204        else
    205205            rc = VERR_NO_STR_MEMORY;
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