Alistair Leslie-Hughes : authz: Add AuthzFreeResourceManager stub.

Alexandre Julliard julliard at winehq.org
Mon Nov 25 09:12:22 CST 2019


Module: wine
Branch: stable
Commit: 340d95a1af6d7402e4860931dc250337a052967e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=340d95a1af6d7402e4860931dc250337a052967e

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Mon Apr 29 04:54:08 2019 +0000

authz: Add AuthzFreeResourceManager stub.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47082
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit d425d519ff5582beae8eaa93164daf75979e82b1)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/authz/authz.c                                               | 9 +++++++++
 dlls/authz/authz.spec                                            | 2 +-
 .../ext-ms-win-authz-context-l1-1-0.spec                         | 2 +-
 include/authz.h                                                  | 1 +
 4 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/dlls/authz/authz.c b/dlls/authz/authz.c
index 5502e7997d..72d462d3bb 100644
--- a/dlls/authz/authz.c
+++ b/dlls/authz/authz.c
@@ -59,6 +59,15 @@ BOOL WINAPI AuthzInitializeResourceManager(DWORD flags, PFN_AUTHZ_DYNAMIC_ACCESS
     return FALSE;
 }
 
+/***********************************************************************
+ *              AuthzFreeResourceManager (AUTHZ.@)
+ */
+BOOL WINAPI AuthzFreeResourceManager(AUTHZ_RESOURCE_MANAGER_HANDLE handle)
+{
+    FIXME("%p\n", handle);
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
 
 /***********************************************************************
  *              AuthzInstallSecurityEventSource (AUTHZ.@)
diff --git a/dlls/authz/authz.spec b/dlls/authz/authz.spec
index eb9e044d2a..933e3d5c50 100644
--- a/dlls/authz/authz.spec
+++ b/dlls/authz/authz.spec
@@ -6,7 +6,7 @@
 @ stub AuthzFreeAuditEvent
 @ stdcall AuthzFreeContext(long)
 @ stub AuthzFreeHandle
-@ stub AuthzFreeResourceManager
+@ stdcall AuthzFreeResourceManager(ptr)
 @ stub AuthzGetInformationFromContext
 @ stub AuthzInitializeContextFromAuthzContext
 @ stdcall AuthzInitializeContextFromSid(long ptr long ptr int64 ptr ptr)
diff --git a/dlls/ext-ms-win-authz-context-l1-1-0/ext-ms-win-authz-context-l1-1-0.spec b/dlls/ext-ms-win-authz-context-l1-1-0/ext-ms-win-authz-context-l1-1-0.spec
index 1bce6d351c..2aa56d6cb6 100644
--- a/dlls/ext-ms-win-authz-context-l1-1-0/ext-ms-win-authz-context-l1-1-0.spec
+++ b/dlls/ext-ms-win-authz-context-l1-1-0/ext-ms-win-authz-context-l1-1-0.spec
@@ -1,6 +1,6 @@
 @ stub AuthzFreeAuditEvent
 @ stdcall AuthzFreeContext(long) authz.AuthzFreeContext
-@ stub AuthzFreeResourceManager
+@ stdcall AuthzFreeResourceManager(ptr) authz.AuthzFreeResourceManager
 @ stub AuthziFreeAuditEventType
 @ stub AuthziInitializeAuditEvent
 @ stub AuthziInitializeAuditEventType
diff --git a/include/authz.h b/include/authz.h
index 42edc8c9ea..d93372acca 100644
--- a/include/authz.h
+++ b/include/authz.h
@@ -103,6 +103,7 @@ BOOL WINAPI AuthzAccessCheck(DWORD flags, AUTHZ_CLIENT_CONTEXT_HANDLE client_con
         AUTHZ_ACCESS_CHECK_RESULTS_HANDLE *access_check_result);
 
 BOOL WINAPI AuthzFreeContext(AUTHZ_CLIENT_CONTEXT_HANDLE client_context);
+BOOL WINAPI AuthzFreeResourceManager(AUTHZ_RESOURCE_MANAGER_HANDLE handle);
 
 BOOL WINAPI AuthzInitializeContextFromSid(DWORD flags, PSID sid,
         AUTHZ_RESOURCE_MANAGER_HANDLE resource_manager, LARGE_INTEGER *expire_time,




More information about the wine-cvs mailing list