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

    r21302 r22024  
    6868           ulRequestCode));
    6969
    70   return(ERROR_INVALID_FUNCTION);
     70  SetLastError(ERROR_INVALID_FUNCTION);
     71  return FALSE;
    7172}
    7273
     
    153154
    154155/*****************************************************************************
    155  * Name      : DWORD HMDeviceOpen32Class::GetFileInformationByHandle
     156 * Name      : BOOL HMDeviceOpen32Class::GetFileInformationByHandle
    156157 * Purpose   : determine the handle type
    157158 * Parameters: PHMHANDLEDATA               pHMHandleData
     
    165166 *****************************************************************************/
    166167
    167 DWORD HMDeviceOpen32Class::GetFileInformationByHandle(PHMHANDLEDATA               pHMHandleData,
    168                                                       BY_HANDLE_FILE_INFORMATION* pHFI)
     168BOOL HMDeviceOpen32Class::GetFileInformationByHandle(PHMHANDLEDATA               pHMHandleData,
     169                                                     BY_HANDLE_FILE_INFORMATION* pHFI)
    169170{
    170171  dprintfl(("KERNEL32: HandleManager::Open32::GetFileInformationByHandle %s(%08xh,%08xh)\n",
Note: See TracChangeset for help on using the changeset viewer.