* 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) {