Ignore:
Timestamp:
Feb 18, 2004, 3:05:48 PM (22 years ago)
Author:
sandervl
Message:

CreateDCA: special handling of FILE and FILE: ports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/devcontext.cpp

    r10442 r10469  
    1 /* $Id: devcontext.cpp,v 1.2 2004-02-10 15:35:38 sandervl Exp $ */
     1/* $Id: devcontext.cpp,v 1.3 2004-02-18 14:05:48 sandervl Exp $ */
    22
    33/*
     
    7878            dprintf(("Rename printer %s to PM Queue %s", lpszDevice, szDevice));
    7979            lpszDevice = szDevice;
     80
    8081            //Must ignore port name here or else the wrong queue might be used
    81             lpszOutput = NULL;
     82            //(unless we are told to print to file)
     83            if (lpszOutput && strcmp(lpszOutput, "FILE:") != 0 && strcmp(lpszOutput, "FILE") != 0)
     84                lpszOutput = NULL;
    8285        }
    8386    }
     
    198201            lpszDevice = szDevice;
    199202            //Must ignore port name here or else the wrong queue might be used
    200             lpszOutput = NULL;
     203            //(unless we are told to print to file)
     204            if (lpszOutput && strcmp(lpszOutput, "FILE:") != 0 && strcmp(lpszOutput, "FILE") != 0)
     205                lpszOutput = NULL;
    201206        }
    202207    }
Note: See TracChangeset for help on using the changeset viewer.