httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Costello <timcoste...@ozemail.com.au>
Subject [PATCH] Fix segfault on Win2000
Date Thu, 01 Jan 1970 00:00:00 GMT
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.

The change causes GetProcAddress to use the function name instead of an
ordinal. 

Tim

===== BEGIN PATCH =====

--- /srclib/repos/apache/2.0/src/src/lib/apr/include/apr_config.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