Ignore:
Timestamp:
Sep 27, 2012, 4:08:58 PM (13 years ago)
Author:
dmik
Message:

kernel32: Fix inverted return values in dummy HMDeviceHandler implementations.

This in particular affected GetFileInformationByHandle and other APIs. Some applications
(like Flash 10.1+) could be completely confused by the fact that the unimplemented API
returns success.

File:
1 edited

Legend:

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

    r21302 r22024  
    360360                                LPOVERLAPPED lpo)
    361361{
    362   BOOL      lpResult;                /* result from the device handler's API */
     362  BOOL      bResult;                 /* result from the device handler's API */
    363363  PHMHANDLE pHMHandle;       /* pointer to the handle structure in the table */
    364364
     
    371371  }
    372372
    373   lpResult = pHMHandle->pDeviceHandler->TransactNamedPipe(&pHMHandle->hmHandleData,
    374                                                           lpvWriteBuf,
    375                                                           cbWriteBuf,
    376                                                           lpvReadBuf,
    377                                                           cbReadBuf,
    378                                                           lpcbRead,
    379                                                           lpo);
    380 
    381   return (lpResult);                                  /* deliver return code */
     373  bResult = pHMHandle->pDeviceHandler->TransactNamedPipe(&pHMHandle->hmHandleData,
     374                                                         lpvWriteBuf,
     375                                                         cbWriteBuf,
     376                                                         lpvReadBuf,
     377                                                         cbReadBuf,
     378                                                         lpcbRead,
     379                                                         lpo);
     380
     381  return (bResult);                                  /* deliver return code */
    382382}
    383383
Note: See TracChangeset for help on using the changeset viewer.