Fix premature use of fdtab.

This commit is contained in:
Christopher Faylor 2000-08-11 13:49:42 +00:00
parent e82d75cc2b
commit bbda7ca078
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ syslog (int priority, const char *message, ...)
interleaved, we must lock the first byte of the file interleaved, we must lock the first byte of the file
This works on Win32 even if we created the file above. 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) if (LockFile (fHandle, 0, 0, 1, 0) == FALSE)
{ {
debug_printf ("failed to lock file %s", get_win95_event_log_path()); debug_printf ("failed to lock file %s", get_win95_event_log_path());