Module: wine
Branch: master
Commit: 4d10575df950c2d78527605f38ebe34218011970
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4d10575df950c2d78527605f…
Author: Austin English <austinenglish(a)gmail.com>
Date: Sun Aug 25 03:52:23 2019 -0500
regini: Add stub program.
Signed-off-by: Austin English <austinenglish(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 2 ++
configure.ac | 1 +
programs/regini/Makefile.in | 6 ++++++
programs/regini/main.c | 33 +++++++++++++++++++++++++++++++++
4 files changed, 42 insertions(+)
diff --git a/configure b/configure
index 450cb4f..c06bc4f 100755
--- a/configure
+++ b/configure
@@ -1747,6 +1747,7 @@ enable_progman
enable_reg
enable_regasm
enable_regedit
+enable_regini
enable_regsvcs
enable_regsvr32
enable_rpcss
@@ -20910,6 +20911,7 @@ wine_fn_config_makefile programs/reg/tests enable_tests
wine_fn_config_makefile programs/regasm enable_regasm
wine_fn_config_makefile programs/regedit enable_regedit
wine_fn_config_makefile programs/regedit/tests enable_tests
+wine_fn_config_makefile programs/regini enable_regini
wine_fn_config_makefile programs/regsvcs enable_regsvcs
wine_fn_config_makefile programs/regsvr32 enable_regsvr32
wine_fn_config_makefile programs/rpcss enable_rpcss
diff --git a/configure.ac b/configure.ac
index df652e8..e58a924 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3891,6 +3891,7 @@ WINE_CONFIG_MAKEFILE(programs/reg/tests)
WINE_CONFIG_MAKEFILE(programs/regasm)
WINE_CONFIG_MAKEFILE(programs/regedit)
WINE_CONFIG_MAKEFILE(programs/regedit/tests)
+WINE_CONFIG_MAKEFILE(programs/regini)
WINE_CONFIG_MAKEFILE(programs/regsvcs)
WINE_CONFIG_MAKEFILE(programs/regsvr32)
WINE_CONFIG_MAKEFILE(programs/rpcss)
diff --git a/programs/regini/Makefile.in b/programs/regini/Makefile.in
new file mode 100644
index 0000000..13c456f
--- /dev/null
+++ b/programs/regini/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = regini.exe
+
+EXTRADLLFLAGS = -mconsole -municode -mno-cygwin
+
+C_SRCS = \
+ main.c
diff --git a/programs/regini/main.c b/programs/regini/main.c
new file mode 100644
index 0000000..a8ad654
--- /dev/null
+++ b/programs/regini/main.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2019 Austin English
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(regini);
+
+int wmain(int argc, WCHAR *argv[])
+{
+ int i;
+
+ WINE_FIXME("stub:");
+ for (i = 0; i < argc; i++)
+ WINE_FIXME(" %s", wine_dbgstr_w(argv[i]));
+ WINE_FIXME("\n");
+
+ return 0;
+}
Module: wine
Branch: master
Commit: 20ab0dacb8dfcb3f514364c87d6ce45292d1afe0
URL: https://source.winehq.org/git/wine.git/?a=commit;h=20ab0dacb8dfcb3f514364c8…
Author: Zebediah Figura <z.figura12(a)gmail.com>
Date: Fri Aug 23 17:36:16 2019 -0500
http.sys: Stop receiving data as long as an unread request is available.
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/http.sys/http.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/dlls/http.sys/http.c b/dlls/http.sys/http.c
index 506aefc..81f5d34 100644
--- a/dlls/http.sys/http.c
+++ b/dlls/http.sys/http.c
@@ -53,7 +53,10 @@ struct connection
char *buffer;
unsigned int len, size;
- /* Things we already parsed out of the request header in parse_request(). */
+ BOOL available;
+
+ /* Things we already parsed out of the request header in parse_request().
+ * These are valid only if "available" is TRUE. */
unsigned int req_len;
HTTP_VERB verb;
HTTP_VERSION version;
@@ -272,6 +275,11 @@ static int parse_request(struct connection *conn)
TRACE("Received a full request, length %u bytes.\n", conn->req_len);
+ /* Stop selecting on incoming data until a response is queued. */
+ WSAEventSelect(conn->socket, request_event, FD_CLOSE);
+
+ conn->available = TRUE;
+
return 1;
}
@@ -294,6 +302,9 @@ static void receive_data(struct connection *conn)
}
conn->len += len;
+ if (conn->available)
+ return; /* waiting for an HttpReceiveHttpRequest() call */
+
TRACE("Received %u bytes of data.\n", len);
if (!(ret = parse_request(conn)))