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 <[EMAIL PROTECTED]>
  
  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) {
  
  
  

Reply via email to