mirror of
				https://github.com/bobranten/Ext4Fsd.git
				synced 2025-10-30 21:38:31 -05:00 
			
		
		
		
	updated to build with Visual Studio 2022 and latest WDK
This commit is contained in:
		| @@ -28,14 +28,14 @@ | |||||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||||||
|     <ConfigurationType>Application</ConfigurationType> |     <ConfigurationType>Application</ConfigurationType> | ||||||
|     <UseDebugLibraries>true</UseDebugLibraries> |     <UseDebugLibraries>true</UseDebugLibraries> | ||||||
|     <PlatformToolset>v142</PlatformToolset> |     <PlatformToolset>v143</PlatformToolset> | ||||||
|     <CharacterSet>MultiByte</CharacterSet> |     <CharacterSet>MultiByte</CharacterSet> | ||||||
|     <UseOfMfc>Dynamic</UseOfMfc> |     <UseOfMfc>Dynamic</UseOfMfc> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||||||
|     <ConfigurationType>Application</ConfigurationType> |     <ConfigurationType>Application</ConfigurationType> | ||||||
|     <UseDebugLibraries>false</UseDebugLibraries> |     <UseDebugLibraries>false</UseDebugLibraries> | ||||||
|     <PlatformToolset>v142</PlatformToolset> |     <PlatformToolset>v143</PlatformToolset> | ||||||
|     <WholeProgramOptimization>true</WholeProgramOptimization> |     <WholeProgramOptimization>true</WholeProgramOptimization> | ||||||
|     <CharacterSet>MultiByte</CharacterSet> |     <CharacterSet>MultiByte</CharacterSet> | ||||||
|     <UseOfMfc>Dynamic</UseOfMfc> |     <UseOfMfc>Dynamic</UseOfMfc> | ||||||
| @@ -43,14 +43,14 @@ | |||||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||||||
|     <ConfigurationType>Application</ConfigurationType> |     <ConfigurationType>Application</ConfigurationType> | ||||||
|     <UseDebugLibraries>true</UseDebugLibraries> |     <UseDebugLibraries>true</UseDebugLibraries> | ||||||
|     <PlatformToolset>v142</PlatformToolset> |     <PlatformToolset>v143</PlatformToolset> | ||||||
|     <CharacterSet>MultiByte</CharacterSet> |     <CharacterSet>MultiByte</CharacterSet> | ||||||
|     <UseOfMfc>Dynamic</UseOfMfc> |     <UseOfMfc>Dynamic</UseOfMfc> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||||||
|     <ConfigurationType>Application</ConfigurationType> |     <ConfigurationType>Application</ConfigurationType> | ||||||
|     <UseDebugLibraries>false</UseDebugLibraries> |     <UseDebugLibraries>false</UseDebugLibraries> | ||||||
|     <PlatformToolset>v142</PlatformToolset> |     <PlatformToolset>v143</PlatformToolset> | ||||||
|     <WholeProgramOptimization>true</WholeProgramOptimization> |     <WholeProgramOptimization>true</WholeProgramOptimization> | ||||||
|     <CharacterSet>MultiByte</CharacterSet> |     <CharacterSet>MultiByte</CharacterSet> | ||||||
|     <UseOfMfc>Dynamic</UseOfMfc> |     <UseOfMfc>Dynamic</UseOfMfc> | ||||||
|   | |||||||
| @@ -28,26 +28,26 @@ | |||||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||||||
|     <ConfigurationType>Application</ConfigurationType> |     <ConfigurationType>Application</ConfigurationType> | ||||||
|     <UseDebugLibraries>true</UseDebugLibraries> |     <UseDebugLibraries>true</UseDebugLibraries> | ||||||
|     <PlatformToolset>v142</PlatformToolset> |     <PlatformToolset>v143</PlatformToolset> | ||||||
|     <CharacterSet>MultiByte</CharacterSet> |     <CharacterSet>MultiByte</CharacterSet> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||||||
|     <ConfigurationType>Application</ConfigurationType> |     <ConfigurationType>Application</ConfigurationType> | ||||||
|     <UseDebugLibraries>false</UseDebugLibraries> |     <UseDebugLibraries>false</UseDebugLibraries> | ||||||
|     <PlatformToolset>v142</PlatformToolset> |     <PlatformToolset>v143</PlatformToolset> | ||||||
|     <WholeProgramOptimization>true</WholeProgramOptimization> |     <WholeProgramOptimization>true</WholeProgramOptimization> | ||||||
|     <CharacterSet>MultiByte</CharacterSet> |     <CharacterSet>MultiByte</CharacterSet> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||||||
|     <ConfigurationType>Application</ConfigurationType> |     <ConfigurationType>Application</ConfigurationType> | ||||||
|     <UseDebugLibraries>true</UseDebugLibraries> |     <UseDebugLibraries>true</UseDebugLibraries> | ||||||
|     <PlatformToolset>v142</PlatformToolset> |     <PlatformToolset>v143</PlatformToolset> | ||||||
|     <CharacterSet>MultiByte</CharacterSet> |     <CharacterSet>MultiByte</CharacterSet> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||||||
|     <ConfigurationType>Application</ConfigurationType> |     <ConfigurationType>Application</ConfigurationType> | ||||||
|     <UseDebugLibraries>false</UseDebugLibraries> |     <UseDebugLibraries>false</UseDebugLibraries> | ||||||
|     <PlatformToolset>v142</PlatformToolset> |     <PlatformToolset>v143</PlatformToolset> | ||||||
|     <WholeProgramOptimization>true</WholeProgramOptimization> |     <WholeProgramOptimization>true</WholeProgramOptimization> | ||||||
|     <CharacterSet>MultiByte</CharacterSet> |     <CharacterSet>MultiByte</CharacterSet> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
|   | |||||||
| @@ -2687,8 +2687,17 @@ Ext2AllocatePool( | |||||||
|     IN ULONG Tag |     IN ULONG Tag | ||||||
| ) | ) | ||||||
| { | { | ||||||
|     return ExAllocatePoolWithTag( |     POOL_FLAGS PoolFlags; | ||||||
|                PoolType, |  | ||||||
|  |     if (PoolType == PagedPool) | ||||||
|  |         PoolFlags = POOL_FLAG_PAGED; | ||||||
|  |     else if (PoolType == NonPagedPool) | ||||||
|  |         PoolFlags = POOL_FLAG_NON_PAGED; | ||||||
|  |     else | ||||||
|  |         PoolFlags = 0; | ||||||
|  |  | ||||||
|  |     return ExAllocatePool2( | ||||||
|  |                PoolFlags, | ||||||
|                NumberOfBytes, |                NumberOfBytes, | ||||||
|                Tag); |                Tag); | ||||||
| } | } | ||||||
|   | |||||||
| @@ -2601,7 +2601,7 @@ Ext2CheckDismount ( | |||||||
|     BOOLEAN bDeleted = FALSE, bTearDown = FALSE; |     BOOLEAN bDeleted = FALSE, bTearDown = FALSE; | ||||||
|     ULONG   UnCleanCount = 0; |     ULONG   UnCleanCount = 0; | ||||||
|  |  | ||||||
|     NewVpb = ExAllocatePoolWithTag(NonPagedPool, VPB_SIZE, TAG_VPB); |     NewVpb = Ext2AllocatePool(NonPagedPool, VPB_SIZE, TAG_VPB); | ||||||
|     if (NewVpb == NULL) { |     if (NewVpb == NULL) { | ||||||
|         DEBUG(DL_ERR, ( "Ex2CheckDismount: failed to allocate NewVpb.\n")); |         DEBUG(DL_ERR, ( "Ex2CheckDismount: failed to allocate NewVpb.\n")); | ||||||
|         return FALSE; |         return FALSE; | ||||||
|   | |||||||
| @@ -459,7 +459,7 @@ struct dentry *Ext2BuildEntry(PEXT2_VCB Vcb, PEXT2_MCB Dcb, PUNICODE_STRING File | |||||||
|             de->d_parent = Dcb->de; |             de->d_parent = Dcb->de; | ||||||
|  |  | ||||||
|         Oem.MaximumLength = (USHORT)Ext2UnicodeToOEMSize(Vcb, FileName) + 1; |         Oem.MaximumLength = (USHORT)Ext2UnicodeToOEMSize(Vcb, FileName) + 1; | ||||||
|         Oem.Buffer = ExAllocatePool(PagedPool, Oem.MaximumLength); |         Oem.Buffer = Ext2AllocatePool(PagedPool, Oem.MaximumLength, 'EB2E'); | ||||||
|         if (!Oem.Buffer) { |         if (!Oem.Buffer) { | ||||||
|             DEBUG(DL_ERR, ( "Ex2BuildEntry: failed to allocate OEM name.\n")); |             DEBUG(DL_ERR, ( "Ex2BuildEntry: failed to allocate OEM name.\n")); | ||||||
|             __leave; |             __leave; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user