mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
[SHIMENG] Prevent a nullptr dereference
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* PROJECT: ReactOS Application compatibility module
|
||||
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
|
||||
* PURPOSE: Shim engine core
|
||||
* COPYRIGHT: Copyright 2015-2018 Mark Jansen ([email protected])
|
||||
* COPYRIGHT: Copyright 2015-2019 Mark Jansen ([email protected])
|
||||
*/
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
@@ -585,7 +585,8 @@ VOID SeiAddHooks(PHOOKAPIEX hooks, DWORD dwHookCount, PSHIMINFO pShim)
|
||||
}
|
||||
}
|
||||
pHookApi = ARRAY_Append(&HookModuleInfo->HookApis, PHOOKAPIEX);
|
||||
*pHookApi = hook;
|
||||
if (pHookApi)
|
||||
*pHookApi = hook;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user