(B (B (B
Hi,
(B
 
(B
I am porting the apache 2.0.53 to Windows 2003 (BServer (64-bit). From the study of the code, I found that at some places, care (Bis not taken while writing the portable code.
(B
 
(B
like in file server\mpm\winnt\child.c (line 887):
(B
 
(B
child_handles = (HANDLE) apr_pcalloc(pchild, ap_threads_per_child * (Bsizeof(int));
(B
 
(B
should be changed to:
(B

child_handles = (HANDLE) apr_pcalloc(pchild, ap_threads_per_child * (Bsizeof(HANDLE));
(B
 
(B
so that it works fine both on 32-bit and 64-bit. Though the size of int and (BHANDLE are same on 32-bit, while allocating memory, care should always be taken (Bwith sizeof().
(B
 
(B
Regards,
(B
Tejas Sanghavi.

http://www.patni.com
(BWorld-Wide Partnerships. World-Class Solutions. (B
(B_____________________________________________________________________ (B

(BThis e-mail message may contain proprietary, confidential or legally (Bprivileged information for the sole use of the person or entity to (Bwhom this message was originally addressed. Any review, e-transmission (Bdissemination or other use of or taking of any action in reliance upon (Bthis information by persons or entities other than the intended (Brecipient is prohibited. If you have received this e-mail in error (Bkindly delete this e-mail from your records. If it appears that this (Bmail has been forwarded to you without proper authority, please notify (Bus immediately at [EMAIL PROTECTED] and delete this mail.
(B_____________________________________________________________________ (B

Reply via email to