Module: wine
Branch: master
Commit: 6f7e0d3dba6e8be7973a955c27349c49c64e1434
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f7e0d3dba6e8be7973a955c2…
Author: Józef Kucia <jkucia(a)codeweavers.com>
Date: Wed Oct 5 11:17:05 2016 +0200
wined3d: Avoid trying to get backup DC when context is no longer associated with swapchain.
Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/wined3d/context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index f249587..89cc9ce 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1069,7 +1069,7 @@ static BOOL context_set_gl_context(struct wined3d_context *ctx)
* a swapchain, so we can't use the swapchain to get a backup dc. To
* make this work windowless contexts would need to be handled by the
* device. */
- if (ctx->destroyed)
+ if (ctx->destroyed || !swapchain)
{
FIXME("Unable to get backup dc for destroyed context %p.\n", ctx);
context_set_current(NULL);
Module: wine
Branch: master
Commit: 7756d6ba9b0213d5533eb5248e62716e7e8409b8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7756d6ba9b0213d5533eb5248…
Author: Austin English <austinenglish(a)gmail.com>
Date: Wed Oct 5 01:04:59 2016 -0500
subst: 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/subst/Makefile.in | 5 +++++
programs/subst/main.c | 33 +++++++++++++++++++++++++++++++++
4 files changed, 41 insertions(+)
diff --git a/configure b/configure
index e4f23e7..e3181e0 100755
--- a/configure
+++ b/configure
@@ -1554,6 +1554,7 @@ enable_services
enable_shutdown
enable_spoolsv
enable_start
+enable_subst
enable_svchost
enable_systeminfo
enable_taskkill
@@ -18489,6 +18490,7 @@ wine_fn_config_test programs/services/tests services.exe_test
wine_fn_config_program shutdown enable_shutdown install
wine_fn_config_program spoolsv enable_spoolsv install
wine_fn_config_program start enable_start clean,install
+wine_fn_config_program subst enable_subst install
wine_fn_config_program svchost enable_svchost install
wine_fn_config_program systeminfo enable_systeminfo install
wine_fn_config_program taskkill enable_taskkill clean,install
diff --git a/configure.ac b/configure.ac
index e97cd17..741a4ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3580,6 +3580,7 @@ WINE_CONFIG_TEST(programs/services/tests)
WINE_CONFIG_PROGRAM(shutdown,,[install])
WINE_CONFIG_PROGRAM(spoolsv,,[install])
WINE_CONFIG_PROGRAM(start,,[clean,install])
+WINE_CONFIG_PROGRAM(subst,,[install])
WINE_CONFIG_PROGRAM(svchost,,[install])
WINE_CONFIG_PROGRAM(systeminfo,,[install])
WINE_CONFIG_PROGRAM(taskkill,,[clean,install])
diff --git a/programs/subst/Makefile.in b/programs/subst/Makefile.in
new file mode 100644
index 0000000..63d574f
--- /dev/null
+++ b/programs/subst/Makefile.in
@@ -0,0 +1,5 @@
+MODULE = subst.exe
+APPMODE = -mconsole -municode
+
+C_SRCS = \
+ main.c
diff --git a/programs/subst/main.c b/programs/subst/main.c
new file mode 100644
index 0000000..5af524d
--- /dev/null
+++ b/programs/subst/main.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2016 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(subst);
+
+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;
+}