fltmgr.sys: add FltInitializePushLock stub (try 2)

Austin English austinenglish at gmail.com
Wed Oct 14 23:05:33 CDT 2015


Supersedes https://source.winehq.org/patches/data/115283

Somehow the .spec changes didn't get committed, fixed here.

-- 
-Austin
-------------- next part --------------
From 3d06cbad59363a1ffb353a75a1b0d82c66e81701 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Wed, 14 Oct 2015 23:03:48 -0500
Subject: fltmgr.sys: add FltInitializePushLock stub (try 2)

Signed-off-by: Austin English <austinenglish at gmail.com>
---
 dlls/fltmgr.sys/fltmgr.sys.spec |  2 +-
 dlls/fltmgr.sys/main.c          |  7 +++++++
 include/ddk/ntifs.h             | 12 ++++++++++++
 3 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/dlls/fltmgr.sys/fltmgr.sys.spec b/dlls/fltmgr.sys/fltmgr.sys.spec
index 5310269..ea84d81 100644
--- a/dlls/fltmgr.sys/fltmgr.sys.spec
+++ b/dlls/fltmgr.sys/fltmgr.sys.spec
@@ -97,7 +97,7 @@
 @ stub FltGetVolumeProperties
 @ stub FltInitializeFileLock
 @ stub FltInitializeOplock
-@ stub FltInitializePushLock
+@ stdcall FltInitializePushLock(ptr)
 @ stub FltIs32bitProcess
 @ stub FltIsCallbackDataDirty
 @ stub FltIsDirectory
diff --git a/dlls/fltmgr.sys/main.c b/dlls/fltmgr.sys/main.c
index 7341ef2..7ece8f2 100644
--- a/dlls/fltmgr.sys/main.c
+++ b/dlls/fltmgr.sys/main.c
@@ -25,6 +25,8 @@
 #include "windef.h"
 #include "winbase.h"
 #include "winternl.h"
+#include "ddk/ntddk.h"
+#include "ddk/ntifs.h"
 #include "ddk/wdm.h"
 #include "wine/debug.h"
 
@@ -36,3 +38,8 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
 
     return STATUS_SUCCESS;
 }
+
+VOID WINAPI FltInitializePushLock(EX_PUSH_LOCK *lock)
+{
+    FIXME("(%p): stub\n", lock);
+}
diff --git a/include/ddk/ntifs.h b/include/ddk/ntifs.h
index a8d90a1..418c40e 100644
--- a/include/ddk/ntifs.h
+++ b/include/ddk/ntifs.h
@@ -19,6 +19,18 @@
 #ifndef __NTIFS_H__
 #define __NTIFS_H__
 
+typedef struct _EX_PUSH_LOCK {
+  union {
+    struct {
+      ULONG  waiting   : 1;
+      ULONG  exclusive : 1;
+      ULONG  shared    : 30;
+    } DUMMYSTRUCTNAME;
+    ULONG  value;
+    VOID   *ptr;
+  } DUMMYUNIONNAME;
+} EX_PUSH_LOCK, *PEX_PUSH_LOCK;
+
 typedef struct _KQUEUE
 {
   DISPATCHER_HEADER Header;
-- 
2.6.1



More information about the wine-patches mailing list