From: nishi Date: Sat, 18 May 2024 17:00:38 +0000 (+0000) Subject: add unlock for windows X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a80b8f1f1266170854277b9659785df276d22c74;p=dataworks.git add unlock for windows git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@35 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- 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