Module: wine
Branch: master
Commit: 2538077463e3be922fc6de576409bee09a9d5de1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2538077463e3be922fc6de57…
Author: Aaron Hill <aa1ronham(a)gmail.com>
Date: Sun Oct 25 23:51:25 2020 -0400
qmgr/tests: Fix issues with handling of transient errors.
When a BITS job is being transferred, it may enter into the state
BG_JOB_STATE_TRANSIENT_ERROR (for example, if the hostname fails to
resolve). Currently, entering this state causes qmgr job tests to fail,
even though it may occur due to temporary network issues out of our
control.
If a job enters BG_JOB_STATE_TRANSIENT_ERROR before the timeout has
elapsed, attempt to resume the job using
IBackgroundCopyJob_Resume. If the job is still in
BG_JOB_STATE_TRANSIENT_ERROR, query BITS for detailed error
information, and print it out.
Additionally, ensure that we are able to transfer files on Windows 10
with a metered connection. By default, BITS will not attempt to transfer
a job on a metered connection, instead failing with
BG_JOB_STATE_TRANSIENT_ERROR. On newer versions of Windows, we can
use IBackgroundCopyJob5 to set the transfer policy, forcing the job to
run even on a metered connection. This allows qmgr job tests to pass on
the testbot Windows 10 VMs, which have metered connections enabled in
order to disable Windows Update.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50048
Signed-off-by: Aaron Hill <aa1ronham(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/qmgr/qmgr_local.idl | 1 +
dlls/qmgr/tests/job.c | 116 +++++++++++++++++++++++++++++++++++++++++++++--
include/Makefile.in | 1 +
include/bits5_0.idl | 59 ++++++++++++++++++++++++
4 files changed, 173 insertions(+), 4 deletions(-)
Diff: https://source.winehq.org/git/wine.git/?a=commitdiff;h=2538077463e3be922fc6…
Module: wine
Branch: master
Commit: edd00eb538259d85e5a1c58d857e7f2ec4700c41
URL: https://source.winehq.org/git/wine.git/?a=commit;h=edd00eb538259d85e5a1c58d…
Author: Austin English <austinenglish(a)gmail.com>
Date: Sun Oct 25 01:22:14 2020 -0500
d3dim700: Add stub dll.
Signed-off-by: Austin English <austinenglish(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 2 ++
configure.ac | 1 +
dlls/d3dim700/Makefile.in | 8 ++++++++
dlls/d3dim700/d3dim700.spec | 18 ++++++++++++++++++
dlls/d3dim700/d3dim700_main.c | 42 ++++++++++++++++++++++++++++++++++++++++++
dlls/d3dim700/version.rc | 26 ++++++++++++++++++++++++++
6 files changed, 97 insertions(+)
diff --git a/configure b/configure
index 6e1290b0cf0..ac6a7985cc7 100755
--- a/configure
+++ b/configure
@@ -1205,6 +1205,7 @@ enable_d3dcompiler_43
enable_d3dcompiler_46
enable_d3dcompiler_47
enable_d3dim
+enable_d3dim700
enable_d3drm
enable_d3dx10_33
enable_d3dx10_34
@@ -20412,6 +20413,7 @@ wine_fn_config_makefile dlls/d3dcompiler_46 enable_d3dcompiler_46
wine_fn_config_makefile dlls/d3dcompiler_47 enable_d3dcompiler_47
wine_fn_config_makefile dlls/d3dcompiler_47/tests enable_tests
wine_fn_config_makefile dlls/d3dim enable_d3dim
+wine_fn_config_makefile dlls/d3dim700 enable_d3dim700
wine_fn_config_makefile dlls/d3drm enable_d3drm
wine_fn_config_makefile dlls/d3drm/tests enable_tests
wine_fn_config_makefile dlls/d3dx10_33 enable_d3dx10_33
diff --git a/configure.ac b/configure.ac
index 331ae064bdc..2f81fd22610 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3156,6 +3156,7 @@ WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_46)
WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_47)
WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_47/tests)
WINE_CONFIG_MAKEFILE(dlls/d3dim)
+WINE_CONFIG_MAKEFILE(dlls/d3dim700)
WINE_CONFIG_MAKEFILE(dlls/d3drm)
WINE_CONFIG_MAKEFILE(dlls/d3drm/tests)
WINE_CONFIG_MAKEFILE(dlls/d3dx10_33)
diff --git a/dlls/d3dim700/Makefile.in b/dlls/d3dim700/Makefile.in
new file mode 100644
index 00000000000..12a28ae475a
--- /dev/null
+++ b/dlls/d3dim700/Makefile.in
@@ -0,0 +1,8 @@
+MODULE = d3dim700.dll
+
+EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+ d3dim700_main.c
+
+RC_SRCS = version.rc
diff --git a/dlls/d3dim700/d3dim700.spec b/dlls/d3dim700/d3dim700.spec
new file mode 100644
index 00000000000..3fe16bb86ed
--- /dev/null
+++ b/dlls/d3dim700/d3dim700.spec
@@ -0,0 +1,18 @@
+@ stub D3DFree
+@ stub D3DMalloc
+@ stub D3DRealloc
+@ stub Direct3DCreateDevice
+@ stub CreateTexture
+@ stub D3DBreakVBLock
+@ stub D3DTextureUpdate
+@ stub DestroyTexture
+@ stub Direct3DCreate
+@ stub Direct3D_HALCleanUp
+@ stub FlushD3DDevices
+@ stub GetLOD
+@ stub GetPriority
+@ stub PaletteAssociateNotify
+@ stub PaletteUpdateNotify
+@ stub SetLOD
+@ stub SetPriority
+@ stub SurfaceFlipNotify
diff --git a/dlls/d3dim700/d3dim700_main.c b/dlls/d3dim700/d3dim700_main.c
new file mode 100644
index 00000000000..18a211ccc74
--- /dev/null
+++ b/dlls/d3dim700/d3dim700_main.c
@@ -0,0 +1,42 @@
+/*
+ *
+ * Copyright 2020 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(d3dim700);
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
+{
+ TRACE("(%p, %u, %p)\n", instance, reason, reserved);
+
+ switch (reason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(instance);
+ break;
+ }
+
+ return TRUE;
+}
diff --git a/dlls/d3dim700/version.rc b/dlls/d3dim700/version.rc
new file mode 100644
index 00000000000..cff97677690
--- /dev/null
+++ b/dlls/d3dim700/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2020 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
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Wine d3dim700"
+#define WINE_FILENAME_STR "d3dim700.dll"
+#define WINE_FILEVERSION 5,3,2600,5512
+#define WINE_FILEVERSION_STR "5.3.2600.5512"
+#define WINE_PRODUCTVERSION 5,3,2600,5512
+#define WINE_PRODUCTVERSION_STR "5.3.2600.5512"
+
+#include "wine/wine_common_ver.rc"