Changeset 3590 in vbox for trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp
- Timestamp:
- Jul 12, 2007 4:25:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp
r3157 r3590 577 577 VMMDevRequestHeader *req = NULL; 578 578 579 int rc = VbglGRAlloc((VMMDevRequestHeader **)&req, vmmdevGetRequestSize(requestHeader->requestType), requestHeader->requestType);579 int rc = VbglGRAlloc((VMMDevRequestHeader **)&req, requestHeader->size, requestHeader->requestType); 580 580 581 581 if (VBOX_SUCCESS(rc)) 582 582 { 583 583 /* copy the request information */ 584 memcpy((void*)req, (void*)pBuf, vmmdevGetRequestSize(requestHeader->requestType));584 memcpy((void*)req, (void*)pBuf, requestHeader->size); 585 585 rc = VbglGRPerform(req); 586 586 … … 594 594 { 595 595 /* copy result */ 596 memcpy((void*)pBuf, (void*)req, vmmdevGetRequestSize(requestHeader->requestType));597 cbOut = vmmdevGetRequestSize(requestHeader->requestType);596 memcpy((void*)pBuf, (void*)req, requestHeader->size); 597 cbOut = requestHeader->size; 598 598 } 599 599
Note:
See TracChangeset
for help on using the changeset viewer.