mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-12 14:57:20 +00:00
[client/common] windows: fix native clang-cl build
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user