MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / maybeCloseFile

Function maybeCloseFile

src/jrd/os/win32/winnt.cpp:902–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900}
901
902static bool maybeCloseFile(HANDLE& hFile)
903{
904/**************************************
905 *
906 * M a y b e C l o s e F i l e
907 *
908 **************************************
909 *
910 * Functional description
911 * If the file is open, close it.
912 *
913 **************************************/
914
915 if (hFile != INVALID_HANDLE_VALUE)
916 {
917 CloseHandle(hFile);
918 hFile = INVALID_HANDLE_VALUE;
919 return true;
920 }
921 return false;
922}
923
924static bool nt_error(const TEXT* string,
925 const jrd_file* file, ISC_STATUS operation,

Callers 2

PIO_closeFunction · 0.70
PIO_force_writeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected