Changeset 55622 in vbox
- Timestamp:
- May 3, 2015 3:28:24 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Additions/common/crOpenGL/wgl.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/wgl.c
r51559 r55622 8 8 #include "cr_spu.h" 9 9 #include "cr_environment.h" 10 #include "cr_mem.h" 10 11 #include "stub.h" 11 12 … … 354 355 DECLEXPORT(HGLRC) WINAPI VBoxCreateContext( HDC hdc, struct VBOXUHGSMI *pHgsmi ) 355 356 { 356 char dpyName[MAX_DPY_NAME];357 char *dpyName; 357 358 ContextInfo *context; 358 359 … … 363 364 CRASSERT(stub.contextTable); 364 365 365 sprintf(dpyName, "%d", hdc); 366 dpyName = crCalloc(MAX_DPY_NAME); 367 if (dpyName) 368 { 369 crMemset(dpyName, 0, MAX_DPY_NAME); 370 sprintf(dpyName, "%d", hdc); 371 } 366 372 #ifndef VBOX_CROGL_USE_VBITS_SUPERSET 367 373 if (stub.haveNativeOpenGL) … … 376 382 #endif 377 383 ); 384 /* Not needed any more. */ 385 crFree(dpyName); 386 378 387 if (!context) 379 388 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.

