apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/file_io/win32 open.c
Date Thu, 25 Jan 2001 15:33:59 GMT
wrowe       01/01/25 07:33:59

  Modified:    file_io/win32 open.c
  Log:
  * open.c (apr_open): Fixed deferencing of potentially NULL pointer
                       (and incorrect logic, at any rate) in call to
                       CreateFileA( ).
  
  Submitted by:	Mike Pilato <cmpilato@collab.net>
  
  Revision  Changes    Path
  1.65      +1 -1      apr/file_io/win32/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/win32/open.c,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- open.c	2001/01/24 08:26:20	1.64
  +++ open.c	2001/01/25 15:33:58	1.65
  @@ -246,7 +246,7 @@
       }
       else
   #endif
  -        handle = CreateFileA((*new)->fname, oflags, sharemode,
  +        handle = CreateFileA(fname, oflags, sharemode,
                                NULL, createflags, attributes, 0);
   
       if (handle == INVALID_HANDLE_VALUE) {
  
  
  

Mime
View raw message