You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "William A. Rowe, Jr." <wr...@lnd.com> on 2000/04/18 06:58:48 UTC
RE: [PATCH] Fix segfault on Win2000
Bill, -please- commit!
> From: Tim Costello [mailto:timcostello@ozemail.com.au]
> Sent: Tuesday, April 18, 2000 9:51 AM
>
> Hi,
>
> This is just a minor fix for the late-binding stuff... on
> Windows 2000,
> GetFileAttributesExA lives at ordinal 290 - so the below
> causes segfaults.
Ugh - and thank you for pointing it out!
That would be GetProfileSectionA in nt4... looks like
they blasted all the ordinals in 2000. Does the platform
sdk do something hokey to catch this all at link time?
I thought all these symbols were bound by ordinal.
> The change causes GetProcAddress to use the function name
> instead of an
> ordinal.
That's why I offered them both... I've run into alot of that
with the oleaut32 library (esp... functions exported early
in the development cycle that wern't documented for a few
versions). Hopefully Greg's obervations on whatever hashing
they do with the symbol names pans out!
> Tim
>
> ===== BEGIN PATCH =====
>
> ---
> /srclib/repos/apache/2.0/src/src/lib/apr/include/apr_co
> nfig.hw Mon Apr 17 09:12:00 2000
> +++ src/lib/apr/include/apr_config.hw Tue Apr 18 13:22:42 2000
> @@ -204,7 +204,7 @@
> * In the case of non-text functions, simply #define the
> original name
> */
>
> -DECLARE_LATE_DLL_FUNC(DLL_WINBASEAPI, BOOL, WINAPI,
> GetFileAttributesExA, 234, (
> +DECLARE_LATE_DLL_FUNC(DLL_WINBASEAPI, BOOL, WINAPI,
> GetFileAttributesExA, 0, (
> IN LPCSTR lpFileName,
> IN GET_FILEEX_INFO_LEVELS fInfoLevelId,
> OUT LPVOID lpFileInformation),
>
> ===== END PATCH =====
> This message was sent through MyMail http://www.mymail.com.au
>
>
Re: [PATCH] Fix segfault on Win2000
Posted by Jeff Trawick <tr...@bellsouth.net>.
> Bill, -please- commit!
done
> > From: Tim Costello [mailto:timcostello@ozemail.com.au]
> > Sent: Tuesday, April 18, 2000 9:51 AM
> >
> > Hi,
> >
> > This is just a minor fix for the late-binding stuff... on
> > Windows 2000,
> > GetFileAttributesExA lives at ordinal 290 - so the below
> > causes segfaults.
--
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...
RE: [PATCH] Fix segfault on Win2000
Posted by Greg Marr <gr...@alum.wpi.edu>.
At 12:58 AM 04/18/2000, William Rowe wrote:
>Ugh - and thank you for pointing it out! That would be
>GetProfileSectionA in nt4... looks like they blasted all the
>ordinals in 2000. Does the platform sdk do something hokey to catch
>this all at link time? I thought all these symbols were bound by
>ordinal.
AFAIK, the SDK/MSVCRT is bound by name, and MFC is bound by ordinal.
Do a dumpbin /imports on any DLL/EXE, and it will list all the
SDK/MSVCRT imports by name, and all the MFC imports by ordinal.
--
Greg Marr
gregm@alum.wpi.edu
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"