return dwErrorCode;
}
- dwErrorCode = EnumPrintProcessorDatatypesW(pName, pPrintProcessorName, Level, pDatatypes, cbBuf, pcbNeeded, pcReturned);
- if (dwErrorCode != ERROR_SUCCESS)
- {
- ERR("EnumPrintProcessorDatatypesW failed with error %lu!\n", dwErrorCode);
- RpcRevertToSelf();
- return dwErrorCode;
- }
+ EnumPrintProcessorDatatypesW(pName, pPrintProcessorName, Level, pDatatypes, cbBuf, pcbNeeded, pcReturned);
+ dwErrorCode = GetLastError();
- return RpcRevertToSelf();
+ RpcRevertToSelf();
+ return dwErrorCode;
}
DWORD
return dwErrorCode;
}
- dwErrorCode = EnumPrintProcessorsW(pName, pEnvironment, Level, pPrintProcessorInfo, cbBuf, pcbNeeded, pcReturned);
- if (dwErrorCode != ERROR_SUCCESS)
- {
- ERR("EnumPrintProcessorsW failed with error %lu!\n", dwErrorCode);
- RpcRevertToSelf();
- return dwErrorCode;
- }
+ EnumPrintProcessorsW(pName, pEnvironment, Level, pPrintProcessorInfo, cbBuf, pcbNeeded, pcReturned);
+ dwErrorCode = GetLastError();
- return RpcRevertToSelf();
+ RpcRevertToSelf();
+ return dwErrorCode;
}
DWORD
return dwErrorCode;
}
- dwErrorCode = GetPrintProcessorDirectoryW(pName, pEnvironment, Level, pPrintProcessorDirectory, cbBuf, pcbNeeded);
- if (dwErrorCode != ERROR_SUCCESS)
- {
- ERR("EnumPrintProcessorsW failed with error %lu!\n", dwErrorCode);
- RpcRevertToSelf();
- return dwErrorCode;
- }
+ GetPrintProcessorDirectoryW(pName, pEnvironment, Level, pPrintProcessorDirectory, cbBuf, pcbNeeded);
+ dwErrorCode = GetLastError();
- return RpcRevertToSelf();
+ RpcRevertToSelf();
+ return dwErrorCode;
}