- Fix SEH for MSVC
- Disable C4003 (caused by the try_return mess)
- Add missing NTAPI to Ext2GetCurrentTime
svn path=/trunk/; revision=42831
<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">
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
}
-ULONG Ext2GetCurrentTime()
+ULONG NTAPI Ext2GetCurrentTime()
{
LARGE_INTEGER CurrentTime;
ULONG Time;