winspool.drv: Check for get_filename failure.

This commit is contained in:
James Hawkins 2007-01-11 03:19:58 -06:00 committed by Alexandre Julliard
parent 8be71fef5b
commit 6840693371

View file

@ -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)))
{