Ignore:
Timestamp:
Dec 29, 1999, 1:39:45 PM (26 years ago)
Author:
sandervl
Message:

PostThreadMessage fix

File:
1 edited

Legend:

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

    r2221 r2246  
    1 /* $Id: win32wbase.cpp,v 1.122 1999-12-27 22:53:53 cbratschi Exp $ */
     1/* $Id: win32wbase.cpp,v 1.123 1999-12-29 12:39:45 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    2828#include "wndmsg.h"
    2929#include "oslibwin.h"
     30#include "oslibmsg.h"
    3031#include "oslibutil.h"
    3132#include "oslibgdi.h"
     
    657658  else
    658659  if (windowClass->getStyle() & CS_PARENTDC)  {
    659     dprintf(("ERROR: Class with CS_PARENTDC style -> NOT IMPLEMENTED!"));
     660    dprintf(("WARNING: Class with CS_PARENTDC style!"));
    660661    fParentDC = TRUE;
    661662    ownDC = 0;
     
    663664  else
    664665  if (windowClass->getStyle() & CS_CLASSDC)  {
    665     dprintf(("ERROR: Class with CS_CLASSDC style -> NOT IMPLEMENTED!"));
     666    dprintf(("WARNING: Class with CS_CLASSDC style!"));
    666667    ownDC = 0;
    667668  }
     
    21542155 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));
    21552156
     2157    dprintf(("PostThreadMessageA %x %x %x %x", threadid, msg, wParam, lParam));
    21562158    packet->Msg = msg;
    21572159    packet->wParam = wParam;
    21582160    packet->lParam = lParam;
    21592161    packet->fUnicode = FALSE;
    2160     return O32_PostThreadMessage(threadid, WIN32APP_POSTMSG, WIN32PM_MAGIC, (DWORD)packet);
     2162    return OSLibPostThreadMessage(threadid, WIN32APP_POSTMSG, WIN32PM_MAGIC, (LPARAM)packet);
    21612163}
    21622164//******************************************************************************
     
    21662168 POSTMSG_PACKET *packet = (POSTMSG_PACKET *)_smalloc(sizeof(POSTMSG_PACKET));
    21672169
     2170    dprintf(("PostThreadMessageW %x %x %x %x", threadid, msg, wParam, lParam));
    21682171    packet->Msg = msg;
    21692172    packet->wParam = wParam;
    21702173    packet->lParam = lParam;
    21712174    packet->fUnicode = TRUE;
    2172     return O32_PostThreadMessage(threadid, WIN32APP_POSTMSG, WIN32PM_MAGIC, (DWORD)packet);
     2175    return OSLibPostThreadMessage(threadid, WIN32APP_POSTMSG, WIN32PM_MAGIC, (LPARAM)packet);
    21732176}
    21742177//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.