apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmpil...@collab.net
Subject [patch] GP Fault on CreateFileA() call.
Date Thu, 25 Jan 2001 15:22:04 GMT
* open.c (apr_open): Fixed deferencing of potentially NULL pointer
                     (and incorrect logic, at any rate) in call to
                     CreateFileA( ).

Index: open.c
===================================================================
RCS file: /home/cvspublic/apr/file_io/win32/open.c,v
retrieving revision 1.64
diff -c -r1.64 open.c
*** open.c      2001/01/24 08:26:20     1.64
--- open.c      2001/01/25 15:10:20
***************
*** 246,252 ****
      }
      else
  #endif
!         handle = CreateFileA((*new)->fname, oflags, sharemode,
                               NULL, createflags, attributes, 0);
  
      if (handle == INVALID_HANDLE_VALUE) {
--- 246,252 ----
      }
      else
  #endif
!         handle = CreateFileA(fname, oflags, sharemode,
                               NULL, createflags, attributes, 0);
  
      if (handle == INVALID_HANDLE_VALUE) {

Mime
View raw message