Commit 056d570d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winspool: Call providor in ReadPrinter implementation.

parent 5c58e448
......@@ -3229,11 +3229,19 @@ BOOL WINAPI SetFormW( HANDLE printer, WCHAR *name, DWORD level, BYTE *form )
/*****************************************************************************
* ReadPrinter [WINSPOOL.@]
*/
BOOL WINAPI ReadPrinter(HANDLE hPrinter, LPVOID pBuf, DWORD cbBuf,
LPDWORD pNoBytesRead)
BOOL WINAPI ReadPrinter(HANDLE printer, void *buf, DWORD size, DWORD *bytes_read)
{
FIXME("(%p,%p,%ld,%p): stub\n",hPrinter,pBuf,cbBuf,pNoBytesRead);
return FALSE;
HANDLE handle = get_backend_handle(printer);
TRACE("(%p,%p,%ld,%p)\n", printer, buf, size, bytes_read);
if (!handle)
{
SetLastError( ERROR_INVALID_HANDLE );
return FALSE;
}
return backend->fpReadPrinter(handle, buf, size, bytes_read);
}
/*****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment