Ignore:
Timestamp:
Jan 31, 2012, 10:16:33 PM (14 years ago)
Author:
dmik
Message:

Add a bunch of Win32 API stubs needed for Flash above 10.0.45.

This is mainly to prevent the plugin from hitting the breakpoints in
the debug version of Odin. These APIs seem to be only referenced
by some of the libraries built in to the Win32 plugin DLL but never
actually called at runtime. This is why the release version of Odin
does not complain and Flash actually works w/o them at all.

File:
1 edited

Legend:

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

    r21932 r21953  
    5353
    5454// borrowed from ntddk.h
    55 extern "C"
    5655void WINAPI RtlUnwind(
    5756        PEXCEPTION_FRAME,
     
    6160//******************************************************************************
    6261//******************************************************************************
    63 extern "C"
    6462HANDLE WIN32API CreateThread(LPSECURITY_ATTRIBUTES  lpsa,
    6563                             DWORD                  cbStack,
     
    116114  return pHandle->hmHandleData.hWin32Handle;
    117115}
    118 
    119 extern "C" {
    120 
     116/*****************************************************************************
     117 *****************************************************************************/
     118HANDLE WIN32API OpenThread(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwThreadId)
     119{
     120    dprintf(("KERNEL32: OpenThread(%08xh, %08xh, %08xh) not implemented\n",
     121             dwDesiredAccess, bInheritHandle, dwThreadId));
     122    return NULL;
     123}
    121124/*****************************************************************************
    122125 * Name      : HMGetThreadPriority
     
    375378}
    376379
    377 } // extern "C"
    378 
    379380/*****************************************************************************
    380381 * Name      : HMSetThreadTerminated
     
    404405  return (lpResult);                                  /* deliver return code */
    405406}
    406 
    407 extern "C" {
    408407
    409408//******************************************************************************
     
    664663  return FALSE;
    665664}
    666 
    667 } // extern "C"
     665//******************************************************************************
     666//******************************************************************************
     667DWORD WIN32API QueueUserAPC(PAPCFUNC func, HANDLE hthread, ULONG_PTR data)
     668{
     669    dprintf(("KERNEL32: QueueUserAPC(%08xh, %08xh, %08xh) not implemented\n",
     670             func, hthread, data));
     671    return 0;
     672}
    668673
    669674//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.