Ignore:
Timestamp:
Nov 14, 2011, 11:03:47 PM (14 years ago)
Author:
dmik
Message:

Port USER32.DLL (continued).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/user32/win32class.cpp

    r21720 r21808  
    3232#include <assert.h>
    3333#include <misc.h>
    34 #include <win32class.h>
    35 #include <win32wnd.h>
     34#include "win32class.h"
     35#include "win32wnd.h"
    3636#include <win/winproc.h>
    3737#include <unicode.h>
     
    4040#include "dbglocal.h"
    4141
    42 static fDestroyAll = FALSE;
     42static BOOL fDestroyAll = FALSE;
    4343
    4444//******************************************************************************
     
    169169
    170170  if(pfnWindowProcA)
    171       WINPROC_FreeProc(pfnWindowProcA, WIN_PROC_CLASS);
     171      WINPROC_FreeProc((HWINDOWPROC)pfnWindowProcA, WIN_PROC_CLASS);
    172172  if(pfnWindowProcW)
    173       WINPROC_FreeProc(pfnWindowProcW, WIN_PROC_CLASS);
     173      WINPROC_FreeProc((HWINDOWPROC)pfnWindowProcW, WIN_PROC_CLASS);
    174174
    175175  if(userClassBytes)    free(userClassBytes);
     
    457457                        pfnWindowProc = pfnWindowProcW;
    458458                }
    459                 return (ULONG) WINPROC_GetProc(pfnWindowProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
     459                return (ULONG) WINPROC_GetProc((HWINDOWPROC)pfnWindowProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    460460        }
    461461        case GCW_ATOM: //TODO: does this really happen in windows?
     
    556556                        proc = &pfnWindowProcW;
    557557                }
    558                 rc = (LONG)WINPROC_GetProc(*proc, type );
     558                rc = (LONG)WINPROC_GetProc((HWINDOWPROC)*proc, type );
    559559                WINPROC_SetProc((HWINDOWPROC *)proc, (WNDPROC)lNewVal, type, WIN_PROC_CLASS);
    560560
     
    564564                    if (proc == &pfnWindowProcA)
    565565                    {
    566                         WINPROC_FreeProc( pfnWindowProcW, WIN_PROC_CLASS );
     566                        WINPROC_FreeProc( (HWINDOWPROC)pfnWindowProcW, WIN_PROC_CLASS );
    567567                        pfnWindowProcW = 0;
    568568                    }
    569569                    else
    570570                    {
    571                         WINPROC_FreeProc( pfnWindowProcA, WIN_PROC_CLASS );
     571                        WINPROC_FreeProc( (HWINDOWPROC)pfnWindowProcA, WIN_PROC_CLASS );
    572572                        pfnWindowProcA = 0;
    573573                    }
Note: See TracChangeset for help on using the changeset viewer.