Closed Bug 507506 Opened 15 years ago Closed 15 years ago

ntmisc.c _MD_WindowsGetSysInfo needs to handle Windows CE

Categories

(NSPR :: NSPR, defect)

ARM
Windows CE
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

References

Details

(Whiteboard: [nv])

Attachments

(3 files)

Whiteboard: [nv]
Assignee: wtc → robert.bugzilla
Status: NEW → ASSIGNED
Attachment #391726 - Flags: review?(wtc)
Attachment #391726 - Flags: review?(wtc) → review+
Comment on attachment 391726 [details] [diff] [review]
patch rev1

r=wtc.  Thanks for the patch.
Remember, the reference copy of NSPR is in CVS, and all other repositories
are downstream.  This fix must be applied to CVS first, then ...
I checked this in to NSPR CVS HEAD for you:
Checking in pr/src/md/windows/ntmisc.c;
/cvsroot/mozilla/nsprpub/pr/src/md/windows/ntmisc.c,v  <--  ntmisc.c
new revision: 3.26; previous revision: 3.25
done
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Thanks Ted
This commit broke my build with VC6:

c:/security/securitytip/builds/20090730.1/nssw2000s_WIN/mozilla/nsprpub/pr/src/md/windows/ntmisc.c(843) : error C2065: 'VER_PLATFORM_WIN32_CE' : undeclared identifier
c:/security/securitytip/builds/20090730.1/nssw2000s_WIN/mozilla/nsprpub/pr/src/md/windows/ntmisc.c(843) : error C2051: case expression not constant
make[6]: *** [ntmisc.obj] Error 2

Please back out this change.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch followup patchSplinter Review
Either VER_PLATFORM_WIN32_CE could be defined locally or the new code can be ifdef WINCE which I kind of prefer since this is only used by WINCE and VER_PLATFORM_WIN32_CE had better be available when compiling WINCE
Attachment #391940 - Flags: review?(wtc)
Comment on attachment 391940 [details] [diff] [review]
followup patch

r=wtc.  You can also consider just testing the macro in question:

    #ifdef VER_PLATFORM_WIN32_CE
Attachment #391940 - Flags: review?(wtc) → review+
Carrying forward review.
Attachment #392028 - Flags: review+
Ted or someone else with access to NSPR CVS... could you please check this in for me? Thanks
btw: since I don't have a NSPR repo the original patch should be reversed before applying the new patch.
Comment on attachment 392028 [details] [diff] [review]
followup patch 2 with Wan-Teh suggestion

Checked in on CVS trunk
Checking in ntmisc.c; new revision: 3.27; previous revision: 3.26

Robert, in NSPR and NSS, we do not follow the practice (used 
elsewhere in Firefox) of "carrying forward" r+ from prior reviews.
But in this case, I gave it r+ an committed it for you.
Attachment #392028 - Flags: review+
Thanks for the checkin and info Nelson
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: