Commit 88a8ff02 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

_CreateAllAccessSecurityAttributes takes three parameters.

parent 475f2336
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
353 stub -noname SHFormatDateTimeA 353 stub -noname SHFormatDateTimeA
354 stub -noname SHFormatDateTimeW 354 stub -noname SHFormatDateTimeW
355 stdcall -noname IUnknown_EnableModeless(ptr long) 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) 357 stdcall -noname SHGetNewLinkInfoWrapW(wstr wstr wstr long long)
358 stdcall -noname SHDefExtractIconWrapW(wstr long long ptr ptr long) 358 stdcall -noname SHDefExtractIconWrapW(wstr long long ptr ptr long)
359 stdcall @(long long wstr) kernel32.OpenEventW 359 stdcall @(long long wstr) kernel32.OpenEventW
......
...@@ -75,12 +75,13 @@ DWORD WINAPI SHStringFromGUIDA(REFGUID,LPSTR,INT); ...@@ -75,12 +75,13 @@ DWORD WINAPI SHStringFromGUIDA(REFGUID,LPSTR,INT);
*/ */
LPSECURITY_ATTRIBUTES WINAPI _CreateAllAccessSecurityAttributes( LPSECURITY_ATTRIBUTES WINAPI _CreateAllAccessSecurityAttributes(
LPSECURITY_ATTRIBUTES lpAttr, LPSECURITY_ATTRIBUTES lpAttr,
PSECURITY_DESCRIPTOR lpSec) PSECURITY_DESCRIPTOR lpSec,
DWORD p3)
{ {
/* This function is used within SHLWAPI only to create security attributes /* This function is used within SHLWAPI only to create security attributes
* for shell semaphores. */ * for shell semaphores. */
TRACE("(%p,%p)\n", lpAttr, lpSec); TRACE("(%p,%p,%08lx)\n", lpAttr, lpSec, p3);
if (!(GetVersion() & 0x80000000)) /* NT */ if (!(GetVersion() & 0x80000000)) /* NT */
{ {
...@@ -426,7 +427,7 @@ HANDLE WINAPI _SHGlobalCounterCreateNamedW(LPCWSTR lpszName, DWORD iInitial) ...@@ -426,7 +427,7 @@ HANDLE WINAPI _SHGlobalCounterCreateNamedW(LPCWSTR lpszName, DWORD iInitial)
StrCpyNW(szBuff + iPrefixLen, lpszName, iBuffLen - iPrefixLen); StrCpyNW(szBuff + iPrefixLen, lpszName, iBuffLen - iPrefixLen);
/* Initialise security attributes */ /* Initialise security attributes */
pSecAttr = _CreateAllAccessSecurityAttributes(&sAttr, &sd); pSecAttr = _CreateAllAccessSecurityAttributes(&sAttr, &sd, 0);
if (!(hRet = CreateSemaphoreW(pSecAttr , iInitial, MAXLONG, szBuff))) if (!(hRet = CreateSemaphoreW(pSecAttr , iInitial, MAXLONG, szBuff)))
hRet = OpenSemaphoreW(SYNCHRONIZE|SEMAPHORE_MODIFY_STATE, 0, szBuff); hRet = OpenSemaphoreW(SYNCHRONIZE|SEMAPHORE_MODIFY_STATE, 0, szBuff);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment