Changeset 40479 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Mar 15, 2012 2:16:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_getshaders.c
r37157 r40479 22 22 #include "packspu_proto.h" 23 23 #include "cr_mem.h" 24 #include <iprt/assert.h> 24 25 25 26 /*@todo combine with the one from server_getshaders.c*/ … … 123 124 } 124 125 126 AssertCompile(sizeof(GLsizei) == 4); 127 125 128 void PACKSPU_APIENTRY packspu_GetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog) 126 129 { … … 140 143 crNetRecv(); 141 144 142 if (length) *length=*pLocal; 143 crMemcpy(infoLog, &pLocal[1], (*pLocal)+1); 145 CRASSERT((pLocal[0]) <= maxLength); 146 147 if (length) *length=*pLocal; 148 crMemcpy(infoLog, &pLocal[1], (maxLength >= (pLocal[0])) ? pLocal[0] : maxLength); 144 149 crFree(pLocal); 145 150 }
Note:
See TracChangeset
for help on using the changeset viewer.