httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@lnd.com>
Subject RE: [PATCH] Fix segfault on Win2000
Date Tue, 18 Apr 2000 04:58:48 GMT
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
> 
> 


Mime
View raw message