Changeset 21808 for branches/gcc-kmk/src/user32/win32class.cpp
- Timestamp:
- Nov 14, 2011, 11:03:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/user32/win32class.cpp
r21720 r21808 32 32 #include <assert.h> 33 33 #include <misc.h> 34 #include <win32class.h>35 #include <win32wnd.h>34 #include "win32class.h" 35 #include "win32wnd.h" 36 36 #include <win/winproc.h> 37 37 #include <unicode.h> … … 40 40 #include "dbglocal.h" 41 41 42 static fDestroyAll = FALSE;42 static BOOL fDestroyAll = FALSE; 43 43 44 44 //****************************************************************************** … … 169 169 170 170 if(pfnWindowProcA) 171 WINPROC_FreeProc( pfnWindowProcA, WIN_PROC_CLASS);171 WINPROC_FreeProc((HWINDOWPROC)pfnWindowProcA, WIN_PROC_CLASS); 172 172 if(pfnWindowProcW) 173 WINPROC_FreeProc( pfnWindowProcW, WIN_PROC_CLASS);173 WINPROC_FreeProc((HWINDOWPROC)pfnWindowProcW, WIN_PROC_CLASS); 174 174 175 175 if(userClassBytes) free(userClassBytes); … … 457 457 pfnWindowProc = pfnWindowProcW; 458 458 } 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); 460 460 } 461 461 case GCW_ATOM: //TODO: does this really happen in windows? … … 556 556 proc = &pfnWindowProcW; 557 557 } 558 rc = (LONG)WINPROC_GetProc( *proc, type );558 rc = (LONG)WINPROC_GetProc((HWINDOWPROC)*proc, type ); 559 559 WINPROC_SetProc((HWINDOWPROC *)proc, (WNDPROC)lNewVal, type, WIN_PROC_CLASS); 560 560 … … 564 564 if (proc == &pfnWindowProcA) 565 565 { 566 WINPROC_FreeProc( pfnWindowProcW, WIN_PROC_CLASS );566 WINPROC_FreeProc( (HWINDOWPROC)pfnWindowProcW, WIN_PROC_CLASS ); 567 567 pfnWindowProcW = 0; 568 568 } 569 569 else 570 570 { 571 WINPROC_FreeProc( pfnWindowProcA, WIN_PROC_CLASS );571 WINPROC_FreeProc( (HWINDOWPROC)pfnWindowProcA, WIN_PROC_CLASS ); 572 572 pfnWindowProcA = 0; 573 573 }
Note:
See TracChangeset
for help on using the changeset viewer.