winspool.drv: Check for get_filename failure.
This commit is contained in:
parent
8be71fef5b
commit
6840693371
|
@ -7340,8 +7340,8 @@ LPWSTR WINAPI StartDocDlgW( HANDLE hPrinter, DOCINFOW *doc )
|
||||||
if(doc->lpszOutput == NULL || !strcmpW(doc->lpszOutput, FILE_Port))
|
if(doc->lpszOutput == NULL || !strcmpW(doc->lpszOutput, FILE_Port))
|
||||||
{
|
{
|
||||||
LPWSTR name;
|
LPWSTR name;
|
||||||
get_filename(&name);
|
|
||||||
if(name)
|
if (get_filename(&name))
|
||||||
{
|
{
|
||||||
if(!(len = GetFullPathNameW(name, 0, NULL, NULL)))
|
if(!(len = GetFullPathNameW(name, 0, NULL, NULL)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue