https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6bd0c70f159aba28ce064…
commit 6bd0c70f159aba28ce0647947d783e21f842a599
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Mar 11 10:41:39 2020 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Wed Mar 11 10:41:39 2020 +0900
[SHLWAPI] Sorry, I updated wrong function at 5a440b2 (#2430)
CORE-13950
---
dll/win32/shlwapi/ordinal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/win32/shlwapi/ordinal.c b/dll/win32/shlwapi/ordinal.c
index 216e7e56a62..db932c7932e 100644
--- a/dll/win32/shlwapi/ordinal.c
+++ b/dll/win32/shlwapi/ordinal.c
@@ -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);