Changeset 70100 in vbox for trunk/src/VBox/Additions/common/VBoxGuest
- Timestamp:
- Dec 13, 2017 9:24:42 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 119648
- Location:
- trunk/src/VBox/Additions/common/VBoxGuest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win-pnp.cpp
r69500 r70100 47 47 RT_C_DECLS_END 48 48 49 #ifdef ALLOC_PRAGMA50 # pragma alloc_text(PAGE, vgdrvNtPnP)51 # pragma alloc_text(PAGE, vgdrvNtPower)52 # pragma alloc_text(PAGE, vgdrvNtSendIrpSynchronously)53 # pragma alloc_text(PAGE, vgdrvNtShowDeviceResources)54 #endif55 49 56 50 -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp
r70099 r70100 40 40 #include <iprt/string.h> 41 41 42 /*43 * XP DDK #defines ExFreePool to ExFreePoolWithTag. The latter does not exist44 * on NT4, so... The same for ExAllocatePool.45 */46 #ifdef TARGET_NT447 # undef ExAllocatePool48 # undef ExFreePool49 #endif50 51 42 52 43 /********************************************************************************************************************************* … … 54 45 *********************************************************************************************************************************/ 55 46 RT_C_DECLS_BEGIN 47 #ifndef TARGET_NT4 56 48 static NTSTATUS vgdrvNtAddDevice(PDRIVER_OBJECT pDrvObj, PDEVICE_OBJECT pDevObj); 49 #endif 57 50 static void vgdrvNtUnload(PDRIVER_OBJECT pDrvObj); 58 51 static NTSTATUS vgdrvNtCreate(PDEVICE_OBJECT pDevObj, PIRP pIrp); … … 62 55 static NTSTATUS vgdrvNtInternalIOCtl(PDEVICE_OBJECT pDevObj, PIRP pIrp); 63 56 static void vgdrvNtReadConfiguration(PVBOXGUESTDEVEXTWIN pDevExt); 57 #ifndef TARGET_NT4 64 58 static NTSTATUS vgdrvNtSystemControl(PDEVICE_OBJECT pDevObj, PIRP pIrp); 59 #endif 65 60 static NTSTATUS vgdrvNtShutdown(PDEVICE_OBJECT pDevObj, PIRP pIrp); 66 61 static NTSTATUS vgdrvNtNotSupportedStub(PDEVICE_OBJECT pDevObj, PIRP pIrp); … … 85 80 #ifdef ALLOC_PRAGMA 86 81 # pragma alloc_text(INIT, DriverEntry) 87 # pragma alloc_text(PAGE, vgdrvNtAddDevice)88 # pragma alloc_text(PAGE, vgdrvNtUnload)89 # pragma alloc_text(PAGE, vgdrvNtCreate)90 # pragma alloc_text(PAGE, vgdrvNtClose)91 # pragma alloc_text(PAGE, vgdrvNtShutdown)92 # pragma alloc_text(PAGE, vgdrvNtNotSupportedStub)93 # pragma alloc_text(PAGE, vgdrvNtScanPCIResourceList)94 82 #endif 95 83 … … 910 898 911 899 900 #ifndef TARGET_NT4 912 901 /** 913 902 * IRP_MJ_SYSTEM_CONTROL handler. … … 928 917 return IoCallDriver(pDevExt->pNextLowerDriver, pIrp); 929 918 } 919 #endif /* TARGET_NT4 */ 930 920 931 921 … … 1709 1699 * Allocate a block of non paged memory for samples and related data. 1710 1700 */ 1711 DPCDATA *pData = (DPCDATA *) ExAllocatePoolWithTag(NonPagedPool, sizeof(DPCDATA), VBOXGUEST_DPC_TAG);1701 DPCDATA *pData = (DPCDATA *)RTMemAlloc(sizeof(DPCDATA)); 1712 1702 if (!pData) 1713 1703 { … … 1760 1750 } 1761 1751 1762 ExFreePoolWithTag(pData, VBOXGUEST_DPC_TAG);1752 RTMemFree(pData); 1763 1753 return VINF_SUCCESS; 1764 1754 }
Note:
See TracChangeset
for help on using the changeset viewer.