Ignore:
Timestamp:
Apr 13, 2000, 8:51:43 PM (25 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

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

    r3274 r3373  
    1 /* $Id: oslibmsg.cpp,v 1.31 2000-03-29 17:16:06 sandervl Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.32 2000-04-13 18:50:44 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    180180        MsgThreadPtr->time = -1;
    181181        if(msg->hwnd) {
    182             thdb->nrOfMsgs = 1;
    183             thdb->msgstate++; //odd -> next call to our PM window handler should dispatch the translated msg
    184             memcpy(&thdb->msg, msg, sizeof(MSG));
     182                thdb->nrOfMsgs = 1;
     183                thdb->msgstate++; //odd -> next call to our PM window handler should dispatch the translated msg
     184                memcpy(&thdb->msg, msg, sizeof(MSG));
    185185        }
    186186        if(os2msg.hwnd || os2msg.msg == WM_QUIT) {
    187             return (LONG)WinDispatchMsg(thdb->hab, &os2msg);
     187                memset(MsgThreadPtr, 0, sizeof(*MsgThreadPtr));
     188                return (LONG)WinDispatchMsg(thdb->hab, &os2msg);
    188189        }
    189190        //SvL: Don't dispatch messages sent by PostThreadMessage (correct??)
Note: See TracChangeset for help on using the changeset viewer.