[Bug 8241] Unable to open a new document in graphpad prism5

wine-bugs at winehq.org wine-bugs at winehq.org
Mon May 18 14:52:08 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=8241


Peter Hedlund <peter at peterandlinda.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter at peterandlinda.com




--- Comment #18 from Peter Hedlund <peter at peterandlinda.com>  2009-05-18 14:52:08 ---
Based on the information in #13, a simple (and I assume dirty) way to get Prism
working is to remove the GMEM_NOTIFY flag like this:

--- snip dlls/kernel32/heap.c ---

GLOBAL WINAPI GlobalAlloc(
                 UINT flags, /* [in] Object allocation attributes */
                 SIZE_T size /* [in] Number of bytes to allocate */
) {
...

      pintern = HeapAlloc(GetProcessHeap(), 0, sizeof(GLOBAL32_INTERN));
      if (pintern)
      {
          if((flags & GMEM_NOTIFY) == GMEM_NOTIFY)
              flags &= ~GMEM_NOTIFY;
          pintern->Magic = MAGIC_GLOBAL_USED;
          pintern->Flags = flags >> 8;
          pintern->LockCount = 0;

--- snip dlls/kernel32/heap.c ---

With this Prism 3, 4, and 5 appear to work. There are some painting issues.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list