diff --git a/source/os/src/osFile.c b/source/os/src/osFile.c index d20640cc0e..bab9ba0cea 100644 --- a/source/os/src/osFile.c +++ b/source/os/src/osFile.c @@ -1033,7 +1033,7 @@ int64_t taosFSendFile(TdFilePtr pFileOut, TdFilePtr pFileIn, int64_t *offset, in #endif } -bool lastErrorIsFileNotExist() { return dwError == ENOENT; } +bool lastErrorIsFileNotExist() { return errno == ENOENT; } #endif // WINDOWS