Commit b6b8d5f4 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

localspl: Add ResetPrinter implementation.

parent 372c4386
......@@ -2472,6 +2472,36 @@ static BOOL WINAPI fpDeleteMonitor(LPWSTR pName, LPWSTR pEnvironment, LPWSTR pMo
return FALSE;
}
static BOOL WINAPI fpResetPrinter(HANDLE hprinter, PRINTER_DEFAULTSW *def)
{
printer_t *printer = (printer_t *)hprinter;
if (!printer || printer->header.type != HANDLE_PRINTER)
{
SetLastError(ERROR_INVALID_HANDLE);
return FALSE;
}
if (!def)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
free(printer->datatype);
if (def->pDatatype)
printer->datatype = wcsdup(def->pDatatype);
else
printer->datatype = NULL;
free(printer->devmode);
if (def->pDevMode)
printer->devmode = dup_devmode(def->pDevMode);
else
printer->devmode = NULL;
return TRUE;
}
/*****************************************************************************
* fpDeletePort [exported through PRINTPROVIDOR]
*
......@@ -4111,7 +4141,7 @@ static const PRINTPROVIDOR backend = {
NULL, /* fpPrinterMessageBox */
fpAddMonitor,
fpDeleteMonitor,
NULL, /* fpResetPrinter */
fpResetPrinter,
NULL, /* fpGetPrinterDriverEx */
NULL, /* fpFindFirstPrinterChangeNotification */
NULL, /* fpFindClosePrinterChangeNotification */
......
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