Author: cfinck
Date: Fri Jul 17 13:00:49 2015
New Revision: 68409
URL:
http://svn.reactos.org/svn/reactos?rev=68409&view=rev
Log:
[LOCALSPL]
Report any error that occured inside _OpenEnvironment.
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/providers/localspl/printprocessors.c
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/providers/localspl/printprocessors.c
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/providers/localspl/printprocessors.c [iso-8859-1]
(original)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/providers/localspl/printprocessors.c [iso-8859-1]
Fri Jul 17 13:00:49 2015
@@ -146,7 +146,10 @@
// Open the environment registry key.
dwErrorCode = _OpenEnvironment(NULL, &hKey);
if (dwErrorCode != ERROR_SUCCESS)
- goto Cleanup;
+ {
+ ERR("_OpenEnvironment failed with error %lu!\n", dwErrorCode);
+ goto Cleanup;
+ }
// Open the "Print Processors" subkey.
dwErrorCode = (DWORD)RegOpenKeyExW(hKey, L"Print Processors", 0, KEY_READ,
&hSubKey);
@@ -477,7 +480,10 @@
// We use the registry and not the PrintProcessorList here, because the caller may
request information about a different environment.
dwErrorCode = _OpenEnvironment(pEnvironment, &hKey);
if (dwErrorCode != ERROR_SUCCESS)
- goto Cleanup;
+ {
+ ERR("_OpenEnvironment failed with error %lu!\n", dwErrorCode);
+ goto Cleanup;
+ }
// Open the "Print Processors" subkey.
dwErrorCode = (DWORD)RegOpenKeyExW(hKey, L"Print Processors", 0, KEY_READ,
&hSubKey);
@@ -632,7 +638,10 @@
// Verify pEnvironment and open its registry key.
dwErrorCode = _OpenEnvironment(pEnvironment, &hKey);
if (dwErrorCode != ERROR_SUCCESS)
- goto Cleanup;
+ {
+ ERR("_OpenEnvironment failed with error %lu!\n", dwErrorCode);
+ goto Cleanup;
+ }
// Determine the size of the required buffer.
dwErrorCode = (DWORD)RegQueryValueExW(hKey, L"Directory", NULL, NULL, NULL,
pcbNeeded);