From: Colin Finck Date: Tue, 20 Jun 2017 06:08:30 +0000 (+0000) Subject: [LOCALSPL] X-Git-Tag: ReactOS-0.4.6~210 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=b29844edd8490fe940a9fa85528a07c241df5e1c [LOCALSPL] Add the missing root backslash to the symbolic link path. Fixes CORE-13457 svn path=/trunk/; revision=75148 --- diff --git a/reactos/win32ss/printing/providers/localspl/main.c b/reactos/win32ss/printing/providers/localspl/main.c index 44b7eea76ef..5dd043643a9 100644 --- a/reactos/win32ss/printing/providers/localspl/main.c +++ b/reactos/win32ss/printing/providers/localspl/main.c @@ -127,13 +127,13 @@ _InitializeLocalSpooler(void) 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"