From: Austin English Subject: advapi32: add LookupSecurityDescriptorPartsA/W stubs Message-Id: Date: Wed, 9 Nov 2016 21:46:10 -0600 Fixes https://bugs.winehq.org/show_bug.cgi?id=41682 -- -Austin GPG: 14FB D7EA A041 937B From edb992a2e9a05b4e01185d7254e46f71e70429a2 Mon Sep 17 00:00:00 2001 From: Austin English Date: Wed, 9 Nov 2016 21:43:18 -0600 Subject: [PATCH] advapi32: add LookupSecurityDescriptorPartsA/W stubs Signed-off-by: Austin English --- dlls/advapi32/advapi32.spec | 4 ++-- dlls/advapi32/security.c | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index 4868841..7318a88 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -415,8 +415,8 @@ @ stdcall LookupPrivilegeNameW(wstr ptr ptr long) @ stdcall LookupPrivilegeValueA(ptr ptr ptr) @ stdcall LookupPrivilegeValueW(ptr ptr ptr) -# @ stub LookupSecurityDescriptorPartsA -# @ stub LookupSecurityDescriptorPartsW +@ stdcall LookupSecurityDescriptorPartsA(ptr ptr ptr ptr ptr ptr ptr) +@ stdcall LookupSecurityDescriptorPartsW(ptr ptr ptr ptr ptr ptr ptr) @ stdcall LsaAddAccountRights(ptr ptr ptr long) @ stub LsaAddPrivilegesToAccount # @ stub LsaClearAuditLog diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index 28331df..7e17a8d 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -6087,3 +6087,27 @@ BOOL WINAPI SaferSetLevelInformation(SAFER_LEVEL_HANDLE handle, SAFER_OBJECT_INF FIXME("(%p %u %p %u) stub\n", handle, infotype, buffer, size); return FALSE; } + +/****************************************************************************** + * LookupSecurityDescriptorPartsA [ADVAPI32.@] + */ +DWORD WINAPI LookupSecurityDescriptorPartsA(TRUSTEEA *owner, TRUSTEEA *group, ULONG *access_count, + EXPLICIT_ACCESSA *access_list, ULONG *audit_count, + EXPLICIT_ACCESSA *audit_list, SECURITY_DESCRIPTOR *descriptor) +{ + FIXME("stub:%p %p %p %p %p %p %p\n", owner, group, access_count, + access_list, audit_count, audit_list, descriptor); + return ERROR_SUCCESS; +} + +/****************************************************************************** + * LookupSecurityDescriptorPartsW [ADVAPI32.@] + */ +DWORD WINAPI LookupSecurityDescriptorPartsW(TRUSTEEW *owner, TRUSTEEW *group, ULONG *access_count, + EXPLICIT_ACCESSW *access_list, ULONG *audit_count, + EXPLICIT_ACCESSW *audit_list, SECURITY_DESCRIPTOR *descriptor) +{ + FIXME("stub:%p %p %p %p %p %p %p\n", owner, group, access_count, + access_list, audit_count, audit_list, descriptor); + return ERROR_SUCCESS; +} -- 2.7.3