Changeset 28560 in vbox
- Timestamp:
- Apr 21, 2010 11:56:08 AM (15 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r28557 r28560 193 193 194 194 uint32_t cbRead = _4K; /* Try reading 4k. */ 195 BYTE *pBuf = (BYTE*)RTMemAlloc(cbRead);195 uint8_t *pBuf = (uint8_t*)RTMemAlloc(cbRead); 196 196 if (pBuf) 197 197 { -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r28557 r28560 166 166 int rc = VINF_SUCCESS; 167 167 size_t cbRead; 168 BYTEabBuf[_64K];168 uint8_t abBuf[_64K]; 169 169 170 170 AssertPtr(pThread); … … 530 530 531 531 int VBoxServiceControlExecReadPipeBufferContent(PVBOXSERVICECTRLEXECPIPEBUF pBuf, 532 BYTE*pbBuffer, uint32_t cbBuffer, uint32_t *pcbToRead)532 uint8_t *pbBuffer, uint32_t cbBuffer, uint32_t *pcbToRead) 533 533 { 534 534 AssertPtr(pcbToRead); … … 554 554 555 555 int VBoxServiceControlExecWritePipeBuffer(PVBOXSERVICECTRLEXECPIPEBUF pBuf, 556 BYTE*pbData, uint32_t cbData)556 uint8_t *pbData, uint32_t cbData) 557 557 { 558 558 AssertPtr(pBuf); … … 561 561 562 562 /** @todo Use RTMemCache or RTMemObj here? */ 563 BYTE*pNewBuf;563 uint8_t *pNewBuf; 564 564 while (pBuf->cbSize - pBuf->cbOffset < cbData) 565 565 { 566 pNewBuf = ( BYTE*)RTMemRealloc(pBuf->pbData, pBuf->cbSize + _4K);566 pNewBuf = (uint8_t*)RTMemRealloc(pBuf->pbData, pBuf->cbSize + _4K); 567 567 if (pNewBuf == NULL) 568 568 break; -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h
r28557 r28560 138 138 typedef struct 139 139 { 140 BYTE*pbData;140 uint8_t *pbData; 141 141 uint32_t cbSize; 142 142 uint32_t cbOffset; … … 270 270 extern void VBoxServiceControlExecDestroyThreadData(PVBOXSERVICECTRLTHREADDATAEXEC pThread); 271 271 extern int VBoxServiceControlExecReadPipeBufferContent(PVBOXSERVICECTRLEXECPIPEBUF pBuf, 272 BYTE*pbBuffer, uint32_t cbBuffer, uint32_t *pcbToRead);272 uint8_t *pbBuffer, uint32_t cbBuffer, uint32_t *pcbToRead); 273 273 extern int VBoxServiceControlExecWritePipeBuffer(PVBOXSERVICECTRLEXECPIPEBUF pBuf, 274 BYTE*pbData, uint32_t cbData);274 uint8_t *pbData, uint32_t cbData); 275 275 #endif 276 276
Note:
See TracChangeset
for help on using the changeset viewer.