From a80b8f1f1266170854277b9659785df276d22c74 Mon Sep 17 00:00:00 2001 From: nishi Date: Sat, 18 May 2024 17:00:38 +0000 Subject: [PATCH] add unlock for windows git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@35 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Library/util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/util.c b/Library/util.c index 9edf282..cb47e65 100644 --- a/Library/util.c +++ b/Library/util.c @@ -58,6 +58,8 @@ bool __dw_lockfile(FILE* fp){ bool __dw_unlockfile(FILE* fp){ #ifdef __MINGW32__ + OVERLAPPED overlap = {0}; + UnlockFileEx(fp, 0, MAXDWORD, MAXDWORD, &overlap); #else lockf(fp, F_ULOCK); #endif -- 2.43.0