mirror of
https://github.com/reactos/reactos.git
synced 2024-07-04 03:34:16 +00:00
- Fix EXT2 IFS for msvc:
- Fix SEH for MSVC - Disable C4003 (caused by the try_return mess) - Add missing NTAPI to Ext2GetCurrentTime svn path=/trunk/; revision=42831
This commit is contained in:
parent
4b9ecd6c5c
commit
cd731afde1
|
@ -3,6 +3,7 @@
|
|||
<module name="ext2fs" type="kernelmodedriver" installbase="system32/drivers" installname="ext2.sys">
|
||||
<bootstrap installbase="$(CDOUTPUT)" />
|
||||
<include base="ext2fs">inc</include>
|
||||
<compilerflag compilerset="msc">/wd4003</compilerflag>
|
||||
<library>ntoskrnl</library>
|
||||
<library>hal</library>
|
||||
<directory name="src">
|
||||
|
|
|
@ -31,11 +31,21 @@ typedef ULONG uint32;
|
|||
|
||||
typedef PVOID PBCB;
|
||||
|
||||
//
|
||||
// This is a huge hack that will create a broken driver for GCC.
|
||||
// The driver should use PSEH2.
|
||||
//
|
||||
#ifdef _MSC_VER
|
||||
#define try __try
|
||||
#define except __except
|
||||
#define finally __finally
|
||||
#else
|
||||
#define try if (1)
|
||||
#define except(x) if (0 && (x))
|
||||
#define finally if (1)
|
||||
#define GetExceptionInformation() 0
|
||||
#define GetExceptionCode() 0
|
||||
#endif
|
||||
|
||||
// we will use the LARGE_INTEGER structure as defined by NT
|
||||
|
||||
|
|
|
@ -2111,7 +2111,7 @@ LONGLONG NTAPI Ext2Align64( LONGLONG NumberToBeAligned, LONGLONG Alignment )
|
|||
}
|
||||
|
||||
|
||||
ULONG Ext2GetCurrentTime()
|
||||
ULONG NTAPI Ext2GetCurrentTime()
|
||||
{
|
||||
LARGE_INTEGER CurrentTime;
|
||||
ULONG Time;
|
||||
|
|
Loading…
Reference in a new issue