mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
CORE-13950
This commit is contained in:
parent
5a440b2d90
commit
6bd0c70f15
1 changed files with 2 additions and 2 deletions
|
@ -221,6 +221,8 @@ SHLockSharedEx(HANDLE hShared, DWORD dwProcId, BOOL bWriteAccess)
|
|||
|
||||
/* Get handle to shared memory for current process */
|
||||
hDup = SHMapHandle(hShared, dwProcId, GetCurrentProcessId(), FILE_MAP_ALL_ACCESS, 0);
|
||||
if (hDup == NULL)
|
||||
return NULL;
|
||||
|
||||
/* Get View */
|
||||
dwAccess = (FILE_MAP_READ | (bWriteAccess ? FILE_MAP_WRITE : 0));
|
||||
|
@ -259,8 +261,6 @@ PVOID WINAPI SHLockShared(HANDLE hShared, DWORD dwProcId)
|
|||
|
||||
/* Get handle to shared memory for current process */
|
||||
hDup = SHMapHandle(hShared, dwProcId, GetCurrentProcessId(), FILE_MAP_ALL_ACCESS, 0);
|
||||
if (hDup == NULL)
|
||||
return NULL;
|
||||
|
||||
/* Get View */
|
||||
pMapped = MapViewOfFile(hDup, FILE_MAP_READ | FILE_MAP_WRITE, 0, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue