From 5fe782bd460a1669f0bddc0e8287f39b9f1631e8 Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 20 Jun 2017 06:56:55 +0200 Subject: [PATCH] Core/FileImpl: Remove implicit region locking (Windows) --- src/Nazara/Core/Win32/FileImpl.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Nazara/Core/Win32/FileImpl.cpp b/src/Nazara/Core/Win32/FileImpl.cpp index b7c5d0f2d..4e5d75c6c 100644 --- a/src/Nazara/Core/Win32/FileImpl.cpp +++ b/src/Nazara/Core/Win32/FileImpl.cpp @@ -191,9 +191,7 @@ namespace Nz LARGE_INTEGER cursorPos; cursorPos.QuadPart = GetCursorPos(); - LockFile(m_handle, cursorPos.LowPart, cursorPos.HighPart, static_cast(size), 0); WriteFile(m_handle, buffer, static_cast(size), &written, nullptr); - UnlockFile(m_handle, cursorPos.LowPart, cursorPos.HighPart, static_cast(size), 0); m_endOfFileUpdated = false;