apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r170456 - /apr/apr/trunk/shmem/win32/shm.c
Date Mon, 16 May 2005 21:36:32 GMT
Author: wrowe
Date: Mon May 16 14:36:32 2005
New Revision: 170456

URL: http://svn.apache.org/viewcvs?rev=170456&view=rev
Log:

  An internal flaw - Win64 requires hi/lo buffer size args

Modified:
    apr/apr/trunk/shmem/win32/shm.c

Modified: apr/apr/trunk/shmem/win32/shm.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/shmem/win32/shm.c?rev=170456&r1=170455&r2=170456&view=diff
==============================================================================
--- apr/apr/trunk/shmem/win32/shm.c (original)
+++ apr/apr/trunk/shmem/win32/shm.c Mon May 16 14:36:32 2005
@@ -109,13 +109,19 @@
 #if APR_HAS_UNICODE_FS
     IF_WIN_OS_IS_UNICODE
     {
-        hMap = CreateFileMappingW(hFile, NULL, PAGE_READWRITE, 0, size, mapkey);
+        DWORD sizelo = (DWORD)size;
+        DWORD sizehi = (DWORD)(size >> 32);
+        hMap = CreateFileMappingW(hFile, NULL, PAGE_READWRITE, 
+                                  sizehi, sizelo, mapkey);
     }
 #endif
 #if APR_HAS_ANSI_FS
     ELSE_WIN_OS_IS_ANSI
     {
-        hMap = CreateFileMappingA(hFile, NULL, PAGE_READWRITE, 0, size, mapkey);
+        DWORD sizelo = (DWORD)size;
+        DWORD sizehi = (DWORD)(size >> 32);
+        hMap = CreateFileMappingA(hFile, NULL, PAGE_READWRITE, 
+                                  sizehi, sizelo, mapkey);
     }
 #endif
     err = apr_get_os_error();



Mime
View raw message