Closed Bug 328547 Opened 18 years ago Closed 17 years ago

Support mozilla/layout on WinXP x64 build

Categories

(Core :: Layout, defect)

x86
Windows Server 2003
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: m_kato, Unassigned)

References

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 2.0.50727)
Build Identifier: 

mozilla/layout/generic/nsObjectFrame.cpp isn't 64-bit safe.

Reproducible: Always

Steps to Reproduce:
Attached patch a patch for mozilla/layout (obsolete) — Splinter Review
To fix, I chage PRUint32 to PRUword.  PRWord is generic pointer type suc as "void*".
Component: Layout → Layout: Misc Code
Blocks: 237202
+      if (NS_REINTERPRET_CAST(PRUword, window->window) != (PRUword)(HDC)hdc) {

wouldn't a better fix be to cast the left side to HDC instead and not to cast the right side?
(In reply to comment #3)
> +      if (NS_REINTERPRET_CAST(PRUword, window->window) != (PRUword)(HDC)hdc) {
> 
> wouldn't a better fix be to cast the left side to HDC instead and not to cast
> the right side?
> 

HDC is equal to void* or HANDLE, not PRUint32.  Microsoft Win64 compiler uses LLP64 model.
I don't understand, I meant this:
      if (NS_REINTERPRET_CAST(HDC, window->window) != hdc) {

Why wouldn't that work?
Your fix is better.
Attached patch a patch for mozilla/layout (obsolete) — Splinter Review
Attachment #213148 - Attachment is obsolete: true
Attachment #230577 - Flags: review?(cbiesinger)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #230577 - Flags: review?(cbiesinger) → review+
Makoto, were you planning on getting this checked in at some point? :-)
Attachment #230577 - Attachment is obsolete: true
(In reply to comment #8)
> Makoto, were you planning on getting this checked in at some point? :-)

I forgot checking in.  So I will send review/super-review with latest diff again. 
Attachment #267966 - Flags: review?(cbiesinger)
Attachment #267966 - Flags: review?(cbiesinger) → review+
Attachment #267966 - Flags: superreview?(dbaron)
Comment on attachment 267966 [details] [diff] [review]
a patch for latest mozilla/layout

sr=dbaron
Attachment #267966 - Flags: superreview?(dbaron) → superreview+
checked in
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: