Changeset 51670 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
- Timestamp:
- Jun 19, 2014 3:12:30 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94439
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
r51524 r51670 32 32 #include <VBox/hgcmsvc.h> 33 33 #include <VBox/log.h> 34 #include <VBox/com/array.h> 34 35 #include <VBox/com/ErrorInfo.h> 35 36 #include <VBox/com/VirtualBox.h> … … 227 228 } 228 229 229 static DECLCALLBACK(void) svcNotifyEventCB(int32_t screenId, uint32_t uEvent, void* pvData)230 static DECLCALLBACK(void) svcNotifyEventCB(int32_t screenId, uint32_t uEvent, void* pvData, uint32_t cbData) 230 231 { 231 232 ComPtr<IDisplay> pDisplay; … … 245 246 return; 246 247 247 pFramebuffer->Notify3DEvent(uEvent, (BYTE*)pvData); 248 com::SafeArray<BYTE> data(cbData); 249 if (cbData) 250 memcpy(data.raw(), pvData, cbData); 251 252 pFramebuffer->Notify3DEvent(uEvent, ComSafeArrayAsInParam(data)); 248 253 } 249 254 … … 1231 1236 do { 1232 1237 /* determine if the framebuffer is functional */ 1233 rc = pFramebuffer->Notify3DEvent(VBOX3D_NOTIFY_EVENT_TYPE_TEST_FUNCTIONAL, NULL); 1238 com::SafeArray<BYTE> data; 1239 rc = pFramebuffer->Notify3DEvent(VBOX3D_NOTIFY_EVENT_TYPE_TEST_FUNCTIONAL, ComSafeArrayAsInParam(data)); 1234 1240 1235 1241 if (rc == S_OK)
Note:
See TracChangeset
for help on using the changeset viewer.