Ignore:
Timestamp:
Dec 29, 2012, 1:31:02 AM (13 years ago)
Author:
dmik
Message:

kernel32: Use file/pipe device classes when standard handles are redirected/piped.

This fixes working with standard handles (stdin/stdout/stderr) broken after r22024.

File:
1 edited

Legend:

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

    r22038 r22051  
    34853485//******************************************************************************
    34863486//******************************************************************************
     3487DWORD OSLibDosQueryHType(ULONG handle)
     3488{
     3489    ULONG type, attr;
     3490    APIRET rc = DosQueryHType(handle, &type, &attr);
     3491    if (rc != NO_ERROR) {
     3492        dprintf(("DosQueryHType error: return code = %u\n", rc));
     3493        return -1;
     3494    }
     3495    return type;
     3496}
     3497//******************************************************************************
     3498//******************************************************************************
    34873499
    34883500/* sdbm:
Note: See TracChangeset for help on using the changeset viewer.