Author: akhaldi
Date: Mon Oct 27 17:23:05 2014
New Revision: 65050
URL:
http://svn.reactos.org/svn/reactos?rev=65050&view=rev
Log:
[ADVAPI32]
* Update GetTrusteeForm{A,W}().
CORE-8540
Modified:
trunk/reactos/dll/win32/advapi32/wine/security.c
Modified: trunk/reactos/dll/win32/advapi32/wine/security.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/wine/se…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] Mon Oct 27 17:23:05
2014
@@ -2037,25 +2037,32 @@
pTrustee->ptstrName = name;
}
-/******************************************************************************
- * GetTrusteeFormW [ADVAPI32.@]
- */
-TRUSTEE_FORM WINAPI
-GetTrusteeFormA(PTRUSTEE_A pTrustee)
-{
- return pTrustee->TrusteeForm;
-}
-
-
-/******************************************************************************
- * GetTrusteeFormW [ADVAPI32.@]
- */
-TRUSTEE_FORM WINAPI
-GetTrusteeFormW(PTRUSTEE_W pTrustee)
-{
- return pTrustee->TrusteeForm;
-}
-
+/******************************************************************************
+ * GetTrusteeFormA [ADVAPI32.@]
+ */
+TRUSTEE_FORM WINAPI GetTrusteeFormA(PTRUSTEEA pTrustee)
+{
+ TRACE("(%p)\n", pTrustee);
+
+ if (!pTrustee)
+ return TRUSTEE_BAD_FORM;
+
+ return pTrustee->TrusteeForm;
+}
+
+/******************************************************************************
+ * GetTrusteeFormW [ADVAPI32.@]
+ */
+TRUSTEE_FORM WINAPI GetTrusteeFormW(PTRUSTEEW pTrustee)
+{
+ TRACE("(%p)\n", pTrustee);
+
+ if (!pTrustee)
+ return TRUSTEE_BAD_FORM;
+
+ return pTrustee->TrusteeForm;
+}
+
/******************************************************************************
* GetTrusteeNameA [ADVAPI32.@]
*/