1
0
Эх сурвалжийг харах

Comment on possibility of _open_osfhandle failing

Source commit: 0c8dadf66b81628c9913f504d06f8b8c743c7e2c
Martin Prikryl 3 жил өмнө
parent
commit
81ad6d2e50

+ 1 - 1
source/core/WebDAVFileSystem.cpp

@@ -1361,7 +1361,7 @@ void __fastcall TWebDAVFileSystem::Source(
       SetFilePointer(Handle.Handle, 0, NULL, FILE_BEGIN);
 
       FD = _open_osfhandle((intptr_t)Handle.Handle, O_BINARY);
-      if (FD < 0)
+      if (FD < 0) // can happen only if there are no free slots in handle-FD table
       {
         throw ESkipFile();
       }