summaryrefslogtreecommitdiff
path: root/zen/file_id.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zen/file_id.cpp')
-rw-r--r--zen/file_id.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/zen/file_id.cpp b/zen/file_id.cpp
index 4f9e3600..40efa373 100644
--- a/zen/file_id.cpp
+++ b/zen/file_id.cpp
@@ -27,13 +27,13 @@ zen::FileId zen::getFileID(const Zstring& filename)
const HANDLE hFile = ::CreateFile(zen::applyLongPathPrefix(filename).c_str(),
0,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
- NULL,
+ nullptr,
OPEN_EXISTING,
FILE_FLAG_OPEN_REPARSE_POINT | FILE_FLAG_BACKUP_SEMANTICS, //FILE_FLAG_BACKUP_SEMANTICS needed to open a directory
- NULL);
+ nullptr);
if (hFile != INVALID_HANDLE_VALUE)
{
- ZEN_ON_BLOCK_EXIT(::CloseHandle(hFile));
+ ZEN_ON_SCOPE_EXIT(::CloseHandle(hFile));
BY_HANDLE_FILE_INFORMATION fileInfo = {};
if (::GetFileInformationByHandle(hFile, &fileInfo))
bgstack15