[WINLOGON]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 7 Aug 2015 16:28:49 +0000 (16:28 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 7 Aug 2015 16:28:49 +0000 (16:28 +0000)
- Load sfc_os.dll because applications have a tendency to create remote threads in winlogon with sfc_os function pointers, assuming that it is loaded. See https://bitsum.com/aboutwfp.asp
CORE-9598 #resolve

svn path=/trunk/; revision=68615

reactos/base/system/winlogon/winlogon.c

index 4b7bf62..6c99f39 100644 (file)
@@ -457,6 +457,8 @@ WinMain(
     else
         PostMessageW(WLSession->SASWindow, WLX_WM_SAS, WLX_SAS_TYPE_CTRL_ALT_DEL, 0);
 
+    (void)LoadLibraryW(L"sfc_os.dll");
+
     /* Tell kernel that CurrentControlSet is good (needed
      * to support Last good known configuration boot) */
     NtInitializeRegistry(CM_BOOT_FLAG_ACCEPTED | 1);