Ignore:
Timestamp:
Jul 25, 2017, 4:32:42 PM (8 years ago)
Author:
dmik
Message:

user32: Do not touch user data of foreign OS/2 windows.

This is plain wrong as these windows' classes are not created by Odin so
it must not make assumptions about window data usage. It fixes Firefox malfunction
when using Flash, see https://github.com/bitwiseworks/mozilla-os2/issues/229.

File:
1 edited

Legend:

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

    r22043 r22134  
    220220    }
    221221
    222     OSLibWinSetVisibleRegionNotify(OS2Hwnd, FALSE);
    223     OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, 0);
    224     OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32PM_MAGIC, 0);
     222    if (!isFakeWindow()) {   
     223        OSLibWinSetVisibleRegionNotify(OS2Hwnd, FALSE);
     224        OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, 0);
     225        OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32PM_MAGIC, 0);
     226    }
    225227
    226228    if(fDestroyAll) {
Note: See TracChangeset for help on using the changeset viewer.