Erich Hoover : advapi32: Return immediately for unsupported [Get|Set] NamedSecurityInfo objects.
Alexandre Julliard
julliard at winehq.org
Mon Dec 3 13:33:57 CST 2012
Module: wine
Branch: master
Commit: e3986462dfd807ff60265e79cd79017e1cee3800
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e3986462dfd807ff60265e79cd79017e1cee3800
Author: Erich Hoover <ehoover at mines.edu>
Date: Sun Dec 2 15:08:21 2012 -0700
advapi32: Return immediately for unsupported [Get|Set]NamedSecurityInfo objects.
---
dlls/advapi32/security.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c
index 5a481ed..e000854 100644
--- a/dlls/advapi32/security.c
+++ b/dlls/advapi32/security.c
@@ -3928,6 +3928,11 @@ DWORD WINAPI SetNamedSecurityInfoW(LPWSTR pObjectName,
TRACE( "%s %d %d %p %p %p %p\n", debugstr_w(pObjectName), ObjectType,
SecurityInfo, psidOwner, psidGroup, pDacl, pSacl);
+ if (ObjectType != SE_FILE_OBJECT)
+ {
+ FIXME( "Object type %d is not currently supported.\n", ObjectType );
+ return ERROR_SUCCESS;
+ }
if (!pObjectName) return ERROR_INVALID_PARAMETER;
if (!RtlDosPathNameToNtPathName_U( pObjectName, &nameW, NULL, NULL ))
@@ -5465,6 +5470,16 @@ DWORD WINAPI GetNamedSecurityInfoW( LPWSTR name, SE_OBJECT_TYPE type,
TRACE( "%s %d %d %p %p %p %p %p\n", debugstr_w(name), type, info, owner,
group, dacl, sacl, descriptor );
+ if (type != SE_FILE_OBJECT)
+ {
+ FIXME( "Object type %d is not currently supported.\n", type );
+ if (owner) *owner = NULL;
+ if (group) *group = NULL;
+ if (dacl) *dacl = NULL;
+ if (sacl) *sacl = NULL;
+ if (descriptor) *descriptor = NULL;
+ return ERROR_SUCCESS;
+ }
/* A NULL descriptor is allowed if any one of the other pointers is not NULL */
if (!name || !(owner||group||dacl||sacl||descriptor) ) return ERROR_INVALID_PARAMETER;
More information about the wine-cvs
mailing list