[ADVAPI32] Sync crypt.c with Wine Staging 1.7.55 and update the exports list accordingly. CORE-10536

svn path=/trunk/; revision=70195
This commit is contained in:
Amine Khaldi 2015-11-28 21:21:52 +00:00
parent 234bd67427
commit eea4a9e43c
3 changed files with 47 additions and 29 deletions

View file

@ -59,7 +59,7 @@
59 stdcall ClearEventLogA(long str)
60 stdcall ClearEventLogW(long wstr)
61 stub CloseCodeAuthzLevel
62 stub CloseEncryptedFileRaw
62 stdcall CloseEncryptedFileRaw(ptr)
63 stdcall CloseEventLog(long)
64 stdcall CloseServiceHandle(long)
65 stub CloseTrace

View file

@ -294,6 +294,23 @@ static void CRYPT_CreateMachineGuid(void)
}
}
/******************************************************************************
* CloseEncryptedFileRaw (ADVAPI32.@)
*
* Close encrypted files
*
* PARAMS
* context [I] pointer to the context
* RETURNS
* Success: ERROR_SUCCESS
* Failure: NTSTATUS error code
*/
void WINAPI CloseEncryptedFileRaw(PVOID context)
{
FIXME("(%p): stub\n", context);
}
/******************************************************************************
* CryptAcquireContextW (ADVAPI32.@)
*
@ -2288,7 +2305,8 @@ BOOLEAN WINAPI SystemFunction036(PVOID pbBuffer, ULONG dwLen)
dev_random = open("/dev/urandom", O_RDONLY);
if (dev_random != -1)
{
if (read(dev_random, pbBuffer, dwLen) == (ssize_t)dwLen)
if (!IsBadWritePtr( pbBuffer, dwLen ) &&
read(dev_random, pbBuffer, dwLen) == (ssize_t)dwLen)
{
close(dev_random);
return TRUE;

View file

@ -257,7 +257,7 @@ reactos/lib/rtl/timerqueue.c # Partly synced with WineStaging-1.7
advapi32 -
reactos/dll/win32/advapi32/wine/cred.c # Synced to WineStaging-1.7.37
reactos/dll/win32/advapi32/wine/crypt.c # Synced to Wine-1.7.27
reactos/dll/win32/advapi32/wine/crypt.c # Synced to WineStaging-1.7.55
reactos/dll/win32/advapi32/wine/crypt_des.c # Synced to WineStaging-1.7.37
reactos/dll/win32/advapi32/wine/crypt_lmhash.c # Synced to WineStaging-1.7.37
reactos/dll/win32/advapi32/wine/security.c # Out of Sync