Author: cfinck
Date: Tue Jun 20 06:08:30 2017
New Revision: 75148
URL: 
http://svn.reactos.org/svn/reactos?rev=75148&view=rev
Log:
[LOCALSPL]
Add the missing root backslash to the symbolic link path. Fixes CORE-13457
Modified:
    trunk/reactos/win32ss/printing/providers/localspl/main.c
Modified: trunk/reactos/win32ss/printing/providers/localspl/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/printing/providers…
==============================================================================
--- trunk/reactos/win32ss/printing/providers/localspl/main.c    [iso-8859-1] (original)
+++ trunk/reactos/win32ss/printing/providers/localspl/main.c    [iso-8859-1] Tue Jun 20
06:08:30 2017
@@ -127,13 +127,13 @@
     const DWORD cchPrintersPath = _countof(wszPrintersPath) - 1;
     const WCHAR wszSpoolPath[] = L"\\spool";
     const DWORD cchSpoolPath = _countof(wszSpoolPath) - 1;
-    const WCHAR wszSymbolicLinkValue[] =
L"REGISTRY\\MACHINE\\SOFTWARE\\Microsoft\\Windows
NT\\CurrentVersion\\Print\\Printers";
+    const WCHAR wszSymbolicLinkValue[] =
L"\\REGISTRY\\MACHINE\\SOFTWARE\\Microsoft\\Windows
NT\\CurrentVersion\\Print\\Printers";
     const DWORD cbSymbolicLinkValue = sizeof(wszSymbolicLinkValue) - sizeof(WCHAR);
     BOOL bReturnValue = FALSE;
     DWORD cbData;
     DWORD dwErrorCode;
-    HKEY hKey;
+    HKEY hKey = NULL;
     // On startup, always create a volatile symbolic link in the registry if it
doesn't exist yet.
     //   "SYSTEM\CurrentControlSet\Control\Print\Printers" ->
"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers"