localspl: Ignore an empty output string.

We should probably ignore all incorrect ports. This is a minimal change
that restores 5dadeeb29d commit.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54379
This commit is contained in:
Piotr Caban 2023-02-21 14:45:16 +01:00 committed by Alexandre Julliard
parent 2bfe9ce883
commit 48d3271f96

View file

@ -3697,7 +3697,7 @@ static BOOL WINAPI fpScheduleJob(HANDLE hprinter, DWORD job_id)
}
port = job->port;
if (!port)
if (!port || !*port)
port = printer->info->port;
TRACE("need to schedule job %ld filename %s to port %s\n", job->id,
debugstr_w(job->filename), debugstr_w(port));