mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SHIMLIB] Fix gcc8 build crashing when using shims
This commit is contained in:
parent
167fa2c26a
commit
6db3d88984
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ BOOL ShimLib_StrAEqualsWNC(PCSTR szString, PCWSTR wszString)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
_SHMALLOC(".shm") SHIMREG _shim_start = { 0 };
|
_SHMALLOC(".shm$AAA") SHIMREG _shim_start = { 0 };
|
||||||
_SHMALLOC(".shm$ZZZ") SHIMREG _shim_end = { 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;
|
PSHIMREG ps = &_shim_start;
|
||||||
ps++;
|
ps++;
|
||||||
for (; ps != &_shim_end; ps++)
|
for (; ps < &_shim_end; ps++)
|
||||||
{
|
{
|
||||||
if (ps->GetHookAPIs != NULL && ps->ShimName != NULL)
|
if (ps->GetHookAPIs != NULL && ps->ShimName != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue