From bbda7ca0787c3c03e64d29d39aa288051aff6676 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 11 Aug 2000 13:49:42 +0000 Subject: [PATCH] Fix premature use of fdtab. --- winsup/cygwin/syslog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc index 50ef80b2c..f7a4c3574 100644 --- a/winsup/cygwin/syslog.cc +++ b/winsup/cygwin/syslog.cc @@ -361,7 +361,7 @@ syslog (int priority, const char *message, ...) interleaved, we must lock the first byte of the file This works on Win32 even if we created the file above. */ - HANDLE fHandle = fdtab[fileno (fp)]->get_handle (); + HANDLE fHandle = dtable[fileno (fp)]->get_handle (); if (LockFile (fHandle, 0, 0, 1, 0) == FALSE) { debug_printf ("failed to lock file %s", get_win95_event_log_path());