shlwapi: _CreateAllAccessSecurityAttributes

Huw D M Davies h.davies1 at physics.ox.ac.uk
Tue Aug 9 05:41:03 CDT 2005


        Huw Davies <huw at codeweavers.com>
        _CreateAllAccessSecurityAttributes takes three parameters.
-- 
Huw Davies
huw at codeweavers.com
Index: dlls/shlwapi/shlwapi.spec
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/shlwapi.spec,v
retrieving revision 1.103
diff -u -p -r1.103 shlwapi.spec
--- dlls/shlwapi/shlwapi.spec	8 Aug 2005 17:43:51 -0000	1.103
+++ dlls/shlwapi/shlwapi.spec	9 Aug 2005 10:39:29 -0000
@@ -353,7 +353,7 @@
 353 stub -noname SHFormatDateTimeA
 354 stub -noname SHFormatDateTimeW
 355 stdcall -noname IUnknown_EnableModeless(ptr long)
-356 stdcall -noname _CreateAllAccessSecurityAttributes(ptr ptr)
+356 stdcall -noname _CreateAllAccessSecurityAttributes(ptr ptr long)
 357 stdcall -noname SHGetNewLinkInfoWrapW(wstr wstr wstr long long)
 358 stdcall -noname SHDefExtractIconWrapW(wstr long long ptr ptr long)
 359 stdcall @(long long wstr) kernel32.OpenEventW
Index: dlls/shlwapi/thread.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/thread.c,v
retrieving revision 1.18
diff -u -p -r1.18 thread.c
--- dlls/shlwapi/thread.c	7 Jan 2005 15:40:09 -0000	1.18
+++ dlls/shlwapi/thread.c	9 Aug 2005 10:39:29 -0000
@@ -75,12 +75,13 @@ DWORD WINAPI SHStringFromGUIDA(REFGUID,L
  */
 LPSECURITY_ATTRIBUTES WINAPI _CreateAllAccessSecurityAttributes(
 	LPSECURITY_ATTRIBUTES lpAttr,
-	PSECURITY_DESCRIPTOR lpSec)
+	PSECURITY_DESCRIPTOR lpSec,
+        DWORD p3)
 {
   /* This function is used within SHLWAPI only to create security attributes
    * for shell semaphores. */
 
-  TRACE("(%p,%p)\n", lpAttr, lpSec);
+  TRACE("(%p,%p,%08lx)\n", lpAttr, lpSec, p3);
 
   if (!(GetVersion() & 0x80000000))  /* NT */
   {
@@ -426,7 +427,7 @@ HANDLE WINAPI _SHGlobalCounterCreateName
     StrCpyNW(szBuff + iPrefixLen, lpszName, iBuffLen - iPrefixLen);
 
   /* Initialise security attributes */
-  pSecAttr = _CreateAllAccessSecurityAttributes(&sAttr, &sd);
+  pSecAttr = _CreateAllAccessSecurityAttributes(&sAttr, &sd, 0);
 
   if (!(hRet = CreateSemaphoreW(pSecAttr , iInitial, MAXLONG, szBuff)))
     hRet = OpenSemaphoreW(SYNCHRONIZE|SEMAPHORE_MODIFY_STATE, 0, szBuff);



More information about the wine-patches mailing list