SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 99ac632d3af7e34ef2007731ffbfae914156b86a parent f6de7b3fbdc9ff1a0a4b53017232bc5845423c76 Author: Lior Halphon <LIJI32@gmail.com> Date: Mon, 25 Jul 2022 22:56:26 +0300 Fix creat on Windows Diffstat:
| M | Windows/utf8_compat.c | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Windows/utf8_compat.c b/Windows/utf8_compat.c @@ -22,11 +22,10 @@ int access(const char *filename, int mode) return _waccess(w_filename, mode); } -int creat(const char *filename, int mode) +int _creat(const char *filename, int mode) { wchar_t w_filename[MAX_PATH] = {0,}; MultiByteToWideChar(CP_UTF8, 0, filename, -1, w_filename, sizeof(w_filename) / sizeof(w_filename[0])); - - return _wcreat(w_filename, mode); + return _wcreat(w_filename, mode & 0700); }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.