projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7600277
)
[LDR] Don't dereference a possible nullptr
author
Mark Jansen
<mark.jansen@reactos.org>
Fri, 28 Dec 2018 18:25:43 +0000
(19:25 +0100)
committer
Mark Jansen
<mark.jansen@reactos.org>
Thu, 3 Jan 2019 21:52:06 +0000
(22:52 +0100)
dll/ntdll/ldr/ldrinit.c
patch
|
blob
|
history
diff --git
a/dll/ntdll/ldr/ldrinit.c
b/dll/ntdll/ldr/ldrinit.c
index
bc72c95
..
d28cb6e
100644
(file)
--- a/
dll/ntdll/ldr/ldrinit.c
+++ b/
dll/ntdll/ldr/ldrinit.c
@@
-2135,8
+2135,10
@@
LdrpInitializeProcess(IN PCONTEXT Context,
if (FreeCurDir) RtlFreeUnicodeString(&CurrentDirectory);
}
if (FreeCurDir) RtlFreeUnicodeString(&CurrentDirectory);
}
- /* Check if we should look for a .local file */
- if (ProcessParameters->Flags & RTL_USER_PROCESS_PARAMETERS_LOCAL_DLL_PATH)
+ /* Check if we should look for a .local file
+ FIXME: Thomas suggested that this check might actually be reversed, we should check this file
+ if the flag is NOT set. */
+ if (ProcessParameters && (ProcessParameters->Flags & RTL_USER_PROCESS_PARAMETERS_LOCAL_DLL_PATH))
{
/* FIXME */
DPRINT1("We don't support .local overrides yet\n");
{
/* FIXME */
DPRINT1("We don't support .local overrides yet\n");