Module: wine
Branch: oldstable
Commit: 7a6b76f28acbebbed5ae3c3859cc978273322f02
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7a6b76f28acbebbed5ae3c38…
Author: Andrey Gusev <andrey.goosev(a)gmail.com>
Date: Tue Jun 22 23:51:22 2021 +0300
msvcr120: Add version.rc file.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51244
Signed-off-by: Andrey Gusev <andrey.goosev(a)gmail.com>
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
(cherry picked from commit 772291539522189fa1712a8a5fa61659bccd883f)
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org>
---
dlls/msvcr120/Makefile.in | 2 ++
dlls/msvcr120/version.rc | 24 ++++++++++++++++++++++++
2 files changed, 26 insertions(+)
diff --git a/dlls/msvcr120/Makefile.in b/dlls/msvcr120/Makefile.in
index 953e9760ca0..585183108ce 100644
--- a/dlls/msvcr120/Makefile.in
+++ b/dlls/msvcr120/Makefile.in
@@ -41,3 +41,5 @@ C_SRCS = \
undname.c \
unixlib.c \
wcs.c
+
+RC_SRCS = version.rc
diff --git a/dlls/msvcr120/version.rc b/dlls/msvcr120/version.rc
new file mode 100644
index 00000000000..f29899e48cb
--- /dev/null
+++ b/dlls/msvcr120/version.rc
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2021 Andrey Gusev
+ *
+ * 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
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Wine CRT library"
+#define WINE_FILENAME_STR "msvcr120.dll"
+#define WINE_FILEVERSION 12,0,40664,0
+#define WINE_FILEVERSION_STR "12.0.40664.0"
+
+#include "wine/wine_common_ver.rc"
Module: wine
Branch: oldstable
Commit: 66fe6841b8dc6ae998cdd5409f50975504dc3b98
URL: https://source.winehq.org/git/wine.git/?a=commit;h=66fe6841b8dc6ae998cdd540…
Author: Damjan Jovanovic <damjan.jov(a)gmail.com>
Date: Sun Jun 20 18:08:02 2021 +0200
msxml3: Return S_FALSE from IXMLDOMNamedNodeMap::nextNode() when there are no attributes.
Currently Wine return S_FALSE when IXMLDOMNamedNodeMap::nextNode()
has run out of attributes to return, but when an XML node has no
attributes at all, it returns S_OK despite setting the nextNode
output parameter to NULL, causing the caller to crash when it
accesses this pointer. Return S_FALSE in this case instead.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50603
Signed-off-by: Damjan Jovanovic <damjan.jov(a)gmail.com>
Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
(cherry picked from commit 06cd8d3d2eb09ffb19f26e95360c3ddcc4caf46d)
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org>
---
dlls/msxml3/element.c | 2 ++
dlls/msxml3/tests/domdoc.c | 25 +++++++++++++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/dlls/msxml3/element.c b/dlls/msxml3/element.c
index 05255508d4e..de5d32c585b 100644
--- a/dlls/msxml3/element.c
+++ b/dlls/msxml3/element.c
@@ -1888,6 +1888,8 @@ static HRESULT domelem_next_node(const xmlNodePtr node, LONG *iter, IXMLDOMNode
*nextNode = NULL;
curr = node->properties;
+ if (curr == NULL)
+ return S_FALSE;
for (i = 0; i < *iter; i++) {
if (curr->next == NULL)
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index e94a2c88a81..a64bc5bc2b0 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -2203,6 +2203,8 @@ static void test_domnode( void )
if (element)
{
+ IXMLDOMNamedNodeMap *attributes;
+
owner = NULL;
r = IXMLDOMElement_get_ownerDocument( element, &owner );
ok( r == S_OK, "get_ownerDocument return code\n");
@@ -2281,6 +2283,29 @@ static void test_domnode( void )
ok( map != NULL, "should be attributes\n");
EXPECT_CHILDREN(element);
+
+ r = IXMLDOMElement_get_childNodes( element, &list );
+ ok( r == S_OK, "Expected S_OK, ret %08x\n", r );
+ r = IXMLDOMNodeList_nextNode( list, &node ); /* <bs> */
+ ok( r == S_OK, "Expected S_OK, ret %08x\n", r );
+ IXMLDOMNode_Release( node );
+ r = IXMLDOMNodeList_nextNode( list, &node ); /* <pr> */
+ ok( r == S_OK, "Expected S_OK, ret %08x\n", r );
+ IXMLDOMNode_Release( node );
+ r = IXMLDOMNodeList_nextNode( list, &node ); /* <empty> */
+ ok( r == S_OK, "Expected S_OK, ret %08x\n", r );
+ r = IXMLDOMNode_get_attributes( node, &attributes );
+ ok( r == S_OK, "Expected S_OK, ret %08x\n", r );
+ next = (IXMLDOMNode*)0xdeadbeef;
+ r = IXMLDOMNamedNodeMap_nextNode( attributes, &next );
+ ok( r == S_FALSE, "Expected S_FALSE, ret %08x\n", r );
+ ok( next == NULL, "Expected NULL, ret %p\n", next );
+ IXMLDOMNamedNodeMap_Release( attributes );
+ IXMLDOMNode_Release( node );
+ node = NULL;
+ next = NULL;
+ IXMLDOMNodeList_Release( list );
+ list = NULL;
}
else
ok( FALSE, "no element\n");
Module: wine
Branch: oldstable
Commit: bc6346ba85e044a8460d41a01ce7df62fa7d906f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bc6346ba85e044a8460d41a0…
Author: Florian Eder <others.meder(a)gmail.com>
Date: Tue Jun 1 07:02:54 2021 +0000
cmd: Do not change errorlevel when setting environment variables.
Changes CMD to set its errorlevel to 0 only when the value of an environment variable
is set in in non-interactive / batch mode, retains the previous value otherwise.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47791
Signed-off-by: Florian Eder <others.meder(a)gmail.com>
Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
(cherry picked from commit 617d14bc1238b57327a8400eda1c1ab22624beb7)
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org>
---
programs/cmd/builtins.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 0fb40d94e49..3f9465320c1 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -4222,7 +4222,7 @@ void WCMD_setshow_env (WCHAR *s) {
if ((!status) & (gle == ERROR_ENVVAR_NOT_FOUND)) {
errorlevel = 1;
} else if (!status) WCMD_print_error();
- else errorlevel = 0;
+ else if (!interactive) errorlevel = 0;
}
}