Ignore:
Timestamp:
May 11, 2004, 11:08:20 AM (21 years ago)
Author:
sandervl
Message:

DT: Added wrappers for calling window handlers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/winproc.cpp

    r10256 r10602  
    1 /* $Id: winproc.cpp,v 1.8 2003-10-02 10:36:00 sandervl Exp $ */
     1/* $Id: winproc.cpp,v 1.9 2004-05-11 09:08:20 sandervl Exp $ */
    22/*
    33 * Window procedure callbacks
     
    1717#include <os2win.h>
    1818#include <string.h>
     19#include "callwrap.h"
    1920#include <win\winproc.h>
    2021#include <win\debugtools.h>
     
    313314    }
    314315
    315     if (!proc) return func(hwnd, msg, wParam, lParam );
     316    if (!proc) return WrapCallback4(func, hwnd, msg, wParam, lParam );
    316317
    317318    switch(proc->type)
    318319    {
    319320    case WIN_PROC_32A:
    320         return func(hwnd, msg, wParam, lParam );
     321        return WrapCallback4(func, hwnd, msg, wParam, lParam );
    321322    case WIN_PROC_32W:
    322323        return WINPROC_CallProc32ATo32W( func, hwnd, msg, wParam, lParam );
     
    347348    }
    348349
    349     if (!proc) return func( hwnd, msg, wParam, lParam );
     350    if (!proc) return WrapCallback4(func, hwnd, msg, wParam, lParam );
    350351
    351352    switch(proc->type)
     
    354355        return WINPROC_CallProc32WTo32A( func, hwnd, msg, wParam, lParam );
    355356    case WIN_PROC_32W:
    356         return func(hwnd, msg, wParam, lParam );
     357        return WrapCallback4(func, hwnd, msg, wParam, lParam );
    357358    default:
    358359        WARN_(relay)("Invalid proc %p\n", proc );
Note: See TracChangeset for help on using the changeset viewer.