winspool: Set the printer location from the cups printer-location option.

This commit is contained in:
Huw Davies 2012-06-15 12:53:55 +01:00 committed by Alexandre Julliard
parent 5875185e34
commit 69ff2636b4
1 changed files with 2 additions and 1 deletions

View File

@ -867,7 +867,7 @@ static BOOL CUPS_LoadPrinters(void)
pi2.pPrintProcessor = WinPrintW;
pi2.pDriverName = nameW;
pi2.pComment = get_cups_option( "printer-info", dests[i].num_options, dests[i].options );
pi2.pLocation = emptyStringW;
pi2.pLocation = get_cups_option( "printer-location", dests[i].num_options, dests[i].options );
pi2.pPortName = port;
pi2.pParameters = emptyStringW;
pi2.pShareName = emptyStringW;
@ -879,6 +879,7 @@ static BOOL CUPS_LoadPrinters(void)
ERR( "printer '%s' not added by AddPrinter (error %d)\n", debugstr_w(nameW), GetLastError() );
HeapFree( GetProcessHeap(), 0, pi2.pComment );
HeapFree( GetProcessHeap(), 0, pi2.pLocation );
}
HeapFree( GetProcessHeap(), 0, port );