Ignore:
Timestamp:
Nov 29, 2001, 12:52:50 AM (24 years ago)
Author:
phaller
Message:

device name fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/hmparport.cpp

    r7474 r7475  
    1 /* $Id: hmparport.cpp,v 1.9 2001-11-28 23:33:37 phaller Exp $ */
     1/* $Id: hmparport.cpp,v 1.10 2001-11-28 23:52:50 phaller Exp $ */
    22
    33/*
     
    153153  // add symbolic links to the "real name" of the device
    154154  {
    155     PSZ pszLPT = strdup("\\\\.\\LPTx");
    156     PSZ pszLPT2 = strdup("\\Device\\ParallelPort1");
     155    PSZ pszLPT  = strdup("\\\\.\\LPTx");
     156    PSZ pszLPT2 = strdup("\\\\.\\LPTx:");
     157    PSZ pszLPT3 = strdup("\\Device\\ParallelPort1");
    157158    for (char ch = '1'; ch <= '3'; ch++)
    158159    {
    159160      pszLPT[7] = ch;
    160       pszLPT2[20] = ch;
     161      pszLPT2[7] = ch;
     162      pszLPT3[20] = ch;
    161163      HandleNamesAddSymbolicLink(pszLPT, pszLPT+4);
    162164      HandleNamesAddSymbolicLink(pszLPT2, pszLPT+4);
     165      HandleNamesAddSymbolicLink(pszLPT3, pszLPT+4);
    163166    }
    164167    free(pszLPT);
    165168    free(pszLPT2);
     169    free(pszLPT3);
    166170  }
    167171}
Note: See TracChangeset for help on using the changeset viewer.