https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6db3d8898475dbb7ae598…
commit 6db3d8898475dbb7ae598c3be520b4688ef21647
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Tue Apr 7 20:47:47 2020 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Tue Apr 7 20:47:47 2020 +0200
[SHIMLIB] Fix gcc8 build crashing when using shims
---
dll/appcompat/shims/shimlib/shimlib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/appcompat/shims/shimlib/shimlib.c
b/dll/appcompat/shims/shimlib/shimlib.c
index 7ab8aa86e37..1d791a05bc5 100644
--- a/dll/appcompat/shims/shimlib/shimlib.c
+++ b/dll/appcompat/shims/shimlib/shimlib.c
@@ -100,7 +100,7 @@ BOOL ShimLib_StrAEqualsWNC(PCSTR szString, PCWSTR wszString)
#endif
-_SHMALLOC(".shm") SHIMREG _shim_start = { 0 };
+_SHMALLOC(".shm$AAA") SHIMREG _shim_start = { 0 };
_SHMALLOC(".shm$ZZZ") SHIMREG _shim_end = { 0 };
@@ -112,7 +112,7 @@ PHOOKAPI WINAPI ShimLib_GetHookAPIs(IN LPCSTR szCommandLine, IN
LPCWSTR wszShimN
{
PSHIMREG ps = &_shim_start;
ps++;
- for (; ps != &_shim_end; ps++)
+ for (; ps < &_shim_end; ps++)
{
if (ps->GetHookAPIs != NULL && ps->ShimName != NULL)
{