Changeset 50982 in vbox for trunk/src/VBox/Devices/VMMDev
- Timestamp:
- Apr 7, 2014 9:47:28 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 93159
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp
r50891 r50982 806 806 } 807 807 808 PVBOXHGCMCMD pCmd = (PVBOXHGCMCMD)RTMemAlloc 808 PVBOXHGCMCMD pCmd = (PVBOXHGCMCMD)RTMemAllocZ(cbCmdSize); 809 809 810 810 if (pCmd == NULL) … … 812 812 return VERR_NO_MEMORY; 813 813 } 814 815 memset (pCmd, 0, sizeof (*pCmd));816 814 817 815 pCmd->paHostParms = NULL; … … 821 819 if (cLinPtrs > 0) 822 820 { 823 pCmd->paLinPtrs = (VBOXHGCMLINPTR *)RTMemAlloc 824 821 pCmd->paLinPtrs = (VBOXHGCMLINPTR *)RTMemAllocZ( sizeof (VBOXHGCMLINPTR) * cLinPtrs 822 + sizeof (RTGCPHYS) * cLinPtrPages); 825 823 826 824 if (pCmd->paLinPtrs == NULL)
Note:
See TracChangeset
for help on using the changeset viewer.