https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d897e271a2b09c14e3443…
commit d897e271a2b09c14e3443daafcef87056d246b3f
Author: Denis Malikov <filedem(a)gmail.com>
AuthorDate: Tue Nov 13 22:52:18 2018 +0700
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Wed Nov 21 19:18:01 2018 +0100
[KERNEL32] FlsAlloc - fiber local storage list was not initialized before using
---
dll/win32/kernel32/client/fiber.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dll/win32/kernel32/client/fiber.c b/dll/win32/kernel32/client/fiber.c
index 1b1e1e37ac..a1a5ffe5d3 100644
--- a/dll/win32/kernel32/client/fiber.c
+++ b/dll/win32/kernel32/client/fiber.c
@@ -372,6 +372,7 @@ FlsAlloc(PFLS_CALLBACK_FUNCTION lpCallback)
if (!NtCurrentTeb()->FlsData)
{
NtCurrentTeb()->FlsData = pFlsData;
+ InitializeListHead(&Peb->FlsListHead);
InsertTailList(&Peb->FlsListHead,
&pFlsData->ListEntry);
}