You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Revert "Update libwebsockets to 3.1 (plus UWP patch)"
This reverts commit90210c4862. (cherry picked from commitbe414e4476)
This commit is contained in:
committed by
Rémi Verschelde
parent
98cf8a4476
commit
20a37529f5
14
thirdparty/libwebsockets/uwp_fixes.diff
vendored
14
thirdparty/libwebsockets/uwp_fixes.diff
vendored
@@ -1,8 +1,8 @@
|
||||
diff --git a/thirdparty/libwebsockets/lib/plat/windows/windows-file.c b/thirdparty/libwebsockets/lib/plat/windows/windows-file.c
|
||||
index 6516b70b0..eb73aab7f 100644
|
||||
--- a/thirdparty/libwebsockets/lib/plat/windows/windows-file.c
|
||||
+++ b/thirdparty/libwebsockets/lib/plat/windows/windows-file.c
|
||||
@@ -36,9 +36,20 @@ _lws_plat_file_open(const struct lws_plat_file_ops *fops, const char *filename,
|
||||
diff --git a/thirdparty/libwebsockets/plat/lws-plat-win.c b/thirdparty/libwebsockets/plat/lws-plat-win.c
|
||||
index bd513b494..1850b6425 100644
|
||||
--- a/thirdparty/libwebsockets/plat/lws-plat-win.c
|
||||
+++ b/thirdparty/libwebsockets/plat/lws-plat-win.c
|
||||
@@ -641,9 +641,20 @@ _lws_plat_file_open(const struct lws_plat_file_ops *fops, const char *filename,
|
||||
HANDLE ret;
|
||||
WCHAR buf[MAX_PATH];
|
||||
lws_fop_fd_t fop_fd;
|
||||
@@ -24,7 +24,7 @@ index 6516b70b0..eb73aab7f 100644
|
||||
if (((*flags) & 7) == _O_RDONLY) {
|
||||
ret = CreateFileW(buf, GENERIC_READ, FILE_SHARE_READ,
|
||||
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
@@ -46,6 +57,7 @@ _lws_plat_file_open(const struct lws_plat_file_ops *fops, const char *filename,
|
||||
@@ -651,6 +662,7 @@ _lws_plat_file_open(const struct lws_plat_file_ops *fops, const char *filename,
|
||||
ret = CreateFileW(buf, GENERIC_WRITE, 0, NULL,
|
||||
CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
}
|
||||
@@ -32,7 +32,7 @@ index 6516b70b0..eb73aab7f 100644
|
||||
|
||||
if (ret == LWS_INVALID_FILE)
|
||||
goto bail;
|
||||
@@ -58,9 +70,9 @@ _lws_plat_file_open(const struct lws_plat_file_ops *fops, const char *filename,
|
||||
@@ -663,9 +675,9 @@ _lws_plat_file_open(const struct lws_plat_file_ops *fops, const char *filename,
|
||||
fop_fd->fd = ret;
|
||||
fop_fd->filesystem_priv = NULL; /* we don't use it */
|
||||
fop_fd->flags = *flags;
|
||||
|
||||
Reference in New Issue
Block a user