Commit 68406933 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

winspool.drv: Check for get_filename failure.

parent 8be71fef
......@@ -7340,8 +7340,8 @@ LPWSTR WINAPI StartDocDlgW( HANDLE hPrinter, DOCINFOW *doc )
if(doc->lpszOutput == NULL || !strcmpW(doc->lpszOutput, FILE_Port))
{
LPWSTR name;
get_filename(&name);
if(name)
if (get_filename(&name))
{
if(!(len = GetFullPathNameW(name, 0, NULL, NULL)))
{
......
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