Changeset 64576 in vbox
- Timestamp:
- Nov 4, 2016 2:12:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGCScreenAscii.cpp
r64554 r64576 186 186 if (RT_LIKELY(pThis->pszScreen)) 187 187 { 188 189 190 188 pThis->paColors = (PDBGCSCREENCOLOR)RTMemAllocZ(cchWidth * cchHeight * sizeof(DBGCSCREENCOLOR)); 189 if (RT_LIKELY(pThis->paColors)) 190 { 191 191 memset(pThis->pszScreen, 0, (cchWidth + 1) * cchHeight * sizeof(char)); 192 192 /* Initialize the screen with spaces. */ … … 195 195 DBGCSCREENCOLOR_DEFAULT); 196 196 *phScreen = pThis; 197 197 } 198 198 else 199 199 rc = VERR_NO_MEMORY; … … 201 201 if (RT_FAILURE(rc)) 202 202 RTStrFree(pThis->pszScreen); 203 203 } 204 204 else 205 205 rc = VERR_NO_STR_MEMORY;
Note:
See TracChangeset
for help on using the changeset viewer.