Closed Bug 626049 Opened 14 years ago Closed 14 years ago

mingw build crashes in [@ EnumAllChildWindProc]

Categories

(Core :: Widget: Win32, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: jacek, Assigned: jacek)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

Attached patch fix v1.0Splinter Review
It crashes because it gets a wrong function pointer passed by LPARAM. That's because in EnumAllThreadWindowProc, we pass &aCallback to EnumThreadWindow. The ampersand is threated differently in this case by GCC and MSVC. In MSVC, &aCallback == aCallback, but in gcc it works like for any pointer type, so *(&aCallback) == aCallback. The attached patch changes the code to use simple aCallback, so it works on both compilers.
Attachment #504118 - Flags: review?(bas.schouten)
Attachment #504118 - Flags: review?(bas.schouten) → review+
Attachment #504118 - Flags: approval2.0?
Severity: normal → critical
Keywords: crash
Summary: mingw build crashes in EnumAllChildWindProc → mingw build crashes in [@ EnumAllChildWindProc]
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Depends on: 629695
Crash Signature: [@ EnumAllChildWindProc]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: