Time to commit some Work-In-Progress stuff before my diff gets too large..
[reactos.git] / reactos / win32ss / printing / base / spoolsv / init.c
index 699505f..2cbb6f6 100644 (file)
 DWORD
 _RpcSpoolerInit()
 {
-    DWORD ErrorCode;
+    DWORD dwErrorCode;
 
     // Call SpoolerInit in the security context of the client.
     // This delay-loads spoolss.dll in the user context and all further calls to functions in spoolss.dll will be done in the user context as well.
-    ErrorCode = RpcImpersonateClient(NULL);
-    if (ErrorCode != ERROR_SUCCESS)
+    dwErrorCode = RpcImpersonateClient(NULL);
+    if (dwErrorCode != ERROR_SUCCESS)
     {
-        ERR("RpcImpersonateClient failed with status %u!\n", ErrorCode);
-        return ErrorCode;
+        ERR("RpcImpersonateClient failed with error %lu!\n", dwErrorCode);
+        return dwErrorCode;
     }
 
-    ErrorCode = SpoolerInit();
-    if (ErrorCode != ERROR_SUCCESS)
+    dwErrorCode = SpoolerInit();
+    if (dwErrorCode != ERROR_SUCCESS)
     {
-        ERR("SpoolerInit failed with status %u!\n", ErrorCode);
+        ERR("SpoolerInit failed with error %lu!\n", dwErrorCode);
         RpcRevertToSelf();
-        return ErrorCode;
+        return dwErrorCode;
     }
 
     return RpcRevertToSelf();