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/hmfile.cpp

    r21667 r22024  
    699699
    700700/*****************************************************************************
    701  * Name      : DWORD HMDeviceFileClass::GetFileInformationByHandle
     701 * Name      : BOOL HMDeviceFileClass::GetFileInformationByHandle
    702702 * Purpose   : determine the handle type
    703703 * Parameters: PHMHANDLEDATA               pHMHandleData
     
    711711 *****************************************************************************/
    712712
    713 DWORD HMDeviceFileClass::GetFileInformationByHandle(PHMHANDLEDATA               pHMHandleData,
    714                                                     BY_HANDLE_FILE_INFORMATION* pHFI)
     713BOOL HMDeviceFileClass::GetFileInformationByHandle(PHMHANDLEDATA               pHMHandleData,
     714                                                   BY_HANDLE_FILE_INFORMATION* pHFI)
    715715{
    716716    dprintfl(("KERNEL32: HMDeviceFileClass::GetFileInformationByHandle %s(%08xh,%08xh)\n",
     
    726726    dprintf(("GetFileInformationByHandle failed with error %d", GetLastError()));
    727727    return FALSE;
    728 
    729728}
    730729
Note: See TracChangeset for help on using the changeset viewer.