Ignore:
Timestamp:
Dec 31, 2012, 1:34:36 PM (13 years ago)
Author:
dmik
Message:

kernel32: Use console input/output mode only if handle is attached to a real console.

Previously it would use this mode (which reads/writes directly to the attached VIO window)
for all character devices (e.g. NUL) which was clearly wrong.

File:
1 edited

Legend:

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

    r22051 r22055  
    34853485//******************************************************************************
    34863486//******************************************************************************
    3487 DWORD OSLibDosQueryHType(ULONG handle)
     3487DWORD OSLibDosQueryHType(ULONG handle, PULONG pAttr)
    34883488{
    34893489    ULONG type, attr;
    3490     APIRET rc = DosQueryHType(handle, &type, &attr);
     3490    APIRET rc = DosQueryHType(handle, &type, pAttr ? pAttr : &attr);
    34913491    if (rc != NO_ERROR) {
    34923492        dprintf(("DosQueryHType error: return code = %u\n", rc));
Note: See TracChangeset for help on using the changeset viewer.