[client/common] windows: fix native clang-cl build

This commit is contained in:
Geoffrey McRae
2026-10-02 20:07:38 +10:00
parent ad0207afc5
commit 78b6a31e7d
5 changed files with 53 additions and 8 deletions

View File

@@ -22,6 +22,7 @@
#include "common/win32.h"
#include <share.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
@@ -144,7 +145,7 @@ FILE * lgOpenFile(const char * path, const char * mode)
return NULL;
}
FILE * result = _wfopen(widePathValue, wideMode);
FILE * result = _wfsopen(widePathValue, wideMode, _SH_DENYNO);
free(widePathValue);
free(wideMode);
return result;