Module: wine Branch: stable Commit: c26663944496739d967c6d0b66b3a0d5416ac78d URL: https://gitlab.winehq.org/wine/wine/-/commit/c26663944496739d967c6d0b66b3a0d...
Author: Piotr Caban piotr@codeweavers.com Date: Wed Jun 7 20:22:21 2023 +0200
localspl: Don't pass original document name to cupsStartDocument.
It's used by the function to find document content type. Fixes regression introduced by e164b8cefb9dfbf0af5b83e176a386eb2c490d6b.
(cherry picked from commit 8171cfb79b4dbd57184ade9b7a66aed47aba8427)
---
dlls/localspl/cups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/localspl/cups.c b/dlls/localspl/cups.c index cd2fc0301ba..20d5b1b6c24 100644 --- a/dlls/localspl/cups.c +++ b/dlls/localspl/cups.c @@ -362,7 +362,7 @@ static BOOL cups_write_doc(doc_t *doc, const BYTE *buf, unsigned int size) }
if (pcupsStartDocument(CUPS_HTTP_DEFAULT, doc->cups.queue, job_id, - doc->cups.doc_title, format, TRUE) != HTTP_STATUS_CONTINUE) + NULL, format, TRUE) != HTTP_STATUS_CONTINUE) { if (pcupsLastErrorString) WARN("cupsStartDocument failed: %s\n", debugstr_a(pcupsLastErrorString()));