https://git.reactos.org/?p=reactos.git;a=commitdiff;h=86ae6b029fd4d18db885e…
commit 86ae6b029fd4d18db885edd12275dc8b120814e4
Author: Colin Finck <colin(a)reactos.org>
AuthorDate: Fri Apr 26 10:30:24 2019 +0200
Commit: Colin Finck <colin(a)reactos.org>
CommitDate: Fri Apr 26 10:31:02 2019 +0200
[ROSAUTOTEST] A timeout of 120 seconds kills the msi:action test prematurely, so increase it to 170 seconds.
This is still below the 180 seconds before sysreg2 kills the entire VM.
I've added a comment to clarify that.
---
modules/rostests/rosautotest/CWineTest.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/rostests/rosautotest/CWineTest.cpp b/modules/rostests/rosautotest/CWineTest.cpp
index 6e163979e0..9967d2d21c 100644
--- a/modules/rostests/rosautotest/CWineTest.cpp
+++ b/modules/rostests/rosautotest/CWineTest.cpp
@@ -8,7 +8,11 @@
#include "precomp.h"
static const DWORD ListTimeout = 10000;
-static const DWORD ProcessActivityTimeout = 120000;
+
+// This value needs to be lower than the <timeout> configured in sysreg.xml! (usually 180000)
+// Otherwise, sysreg2 kills the VM before we can kill the process.
+static const DWORD ProcessActivityTimeout = 170000;
+
/**
* Constructs a CWineTest object.
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e34d3cf3792b9ae44d1e8…
commit e34d3cf3792b9ae44d1e814a1ca160e1714aa71f
Author: Colin Finck <colin(a)reactos.org>
AuthorDate: Wed Apr 24 10:48:15 2019 +0200
Commit: Colin Finck <colin(a)reactos.org>
CommitDate: Fri Apr 26 10:02:47 2019 +0200
[REGTEST] Add regtest.cmd to the Run key inside regtest.cmd, so we're also started on the next reboot in case ReactOS crashed *and* the registry has been saved.
unattend.inf only allows to add RunOnce entries, which are in theory only executed on the first boot after installation.
For almost a decade, this worked anyway to start regtest.cmd again after a ReactOS crash, because the registry and thus the deletion of the RunOnce entry wasn't stored on disk in case of a crash.
Thanks to Sylvain for the hint!
As Explorer processes the Run key right after RunOnce and therefore picks up regtest.cmd a second time during the first boot, exit the script just after adding the Run key.
Otherwise, rosautotest.exe would be started twice, with catastrophic results.
---
boot/bootdata/bootcdregtest/regtest.cmd | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/boot/bootdata/bootcdregtest/regtest.cmd b/boot/bootdata/bootcdregtest/regtest.cmd
index 29ea7becb2..ec263e1324 100644
--- a/boot/bootdata/bootcdregtest/regtest.cmd
+++ b/boot/bootdata/bootcdregtest/regtest.cmd
@@ -2,6 +2,15 @@
set WINETEST_DEBUG=0
set WINETEST_PLATFORM=reactos
+:: On the first boot, we're started through RunOnce.
+:: Add us to the Run key, so we're also started on the next reboot in case ReactOS crashed *and* the registry has been saved.
+:: Exit right after that, because Explorer processes the Run key right after RunOnce and therefore picks up regtest.cmd a second time during the first boot.
+reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v regtest
+if "%errorlevel%"=="1" (
+ reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v regtest /t REG_SZ /d "%SystemRoot%\system32\cmd.exe /c regtest.cmd"
+ exit 0
+)
+
move C:\ReactOS\bin\redirtest1.dll C:\ReactOS\bin\kernel32test_versioned.dll
move C:\ReactOS\bin\testdata\redirtest2.dll C:\ReactOS\bin\testdata\kernel32test_versioned.dll
if exist "C:\ReactOS\bin\AHKAppTests.cmd" (
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c8611aea13fc813354869…
commit c8611aea13fc813354869f6a604f248af8cf1a47
Author: Oleg Dubinskiy <oleg.dubinskij2013(a)yandex.ua>
AuthorDate: Sun Apr 14 21:00:12 2019 +0300
Commit: Robert Naumann <gonzomdx(a)gmail.com>
CommitDate: Wed Apr 24 19:59:15 2019 +0200
[DPNHPAST] Import dpnhpast.dll from Wine (Staging) 4.5
---
dll/directx/wine/CMakeLists.txt | 1 +
dll/directx/wine/dpnhpast/CMakeLists.txt | 15 ++++++
dll/directx/wine/dpnhpast/dpnhpast.spec | 6 +++
dll/directx/wine/dpnhpast/main.c | 86 ++++++++++++++++++++++++++++++++
dll/directx/wine/dpnhpast/version.rc | 26 ++++++++++
media/doc/README.WINE | 1 +
6 files changed, 135 insertions(+)
diff --git a/dll/directx/wine/CMakeLists.txt b/dll/directx/wine/CMakeLists.txt
index 3de83cab1f..9cccbb1466 100644
--- a/dll/directx/wine/CMakeLists.txt
+++ b/dll/directx/wine/CMakeLists.txt
@@ -32,6 +32,7 @@ add_subdirectory(dinput8)
add_subdirectory(dmusic)
add_subdirectory(dplay)
add_subdirectory(dplayx)
+add_subdirectory(dpnhpast)
add_subdirectory(dsound)
add_subdirectory(dxdiagn)
add_subdirectory(msdmo)
diff --git a/dll/directx/wine/dpnhpast/CMakeLists.txt b/dll/directx/wine/dpnhpast/CMakeLists.txt
new file mode 100644
index 0000000000..53d5cf5142
--- /dev/null
+++ b/dll/directx/wine/dpnhpast/CMakeLists.txt
@@ -0,0 +1,15 @@
+
+add_definitions(-D__WINESRC__)
+include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
+spec2def(dpnhpast.dll dpnhpast.spec)
+
+list(APPEND SOURCE
+ main.c
+ ${CMAKE_CURRENT_BINARY_DIR}/dpnhpast_stubs.c
+ ${CMAKE_CURRENT_BINARY_DIR}/dpnhpast.def)
+
+add_library(dpnhpast MODULE ${SOURCE} version.rc)
+set_module_type(dpnhpast win32dll)
+target_link_libraries(dpnhpast dxguid uuid wine)
+add_importlibs(dpnhpast msvcrt kernel32 ntdll)
+add_cd_file(TARGET dpnhpast DESTINATION reactos/system32 FOR all)
diff --git a/dll/directx/wine/dpnhpast/dpnhpast.spec b/dll/directx/wine/dpnhpast/dpnhpast.spec
new file mode 100644
index 0000000000..ea61468ac8
--- /dev/null
+++ b/dll/directx/wine/dpnhpast/dpnhpast.spec
@@ -0,0 +1,6 @@
+1 stdcall DirectPlayNATHelpCreate(ptr ptr)
+
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
diff --git a/dll/directx/wine/dpnhpast/main.c b/dll/directx/wine/dpnhpast/main.c
new file mode 100644
index 0000000000..4e46608abd
--- /dev/null
+++ b/dll/directx/wine/dpnhpast/main.c
@@ -0,0 +1,86 @@
+/* DirectPlay NAT Helper Past Main
+ *
+ * Copyright (C) 2003 Rok Mandeljc
+ *
+ * This program 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 program 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 program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "objbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dpnhpast);
+
+/******************************************************************
+ * DirectPlayNATHelpCreate (DPNHPAST.1)
+ *
+ *
+ */
+HRESULT WINAPI DirectPlayNATHelpCreate(LPCGUID pIID, PVOID *ppvInterface)
+{
+ TRACE("(%p, %p) stub\n", pIID, ppvInterface);
+ return E_NOTIMPL;
+}
+
+
+/******************************************************************
+ * DllRegisterServer (DPNHPAST.@)
+ *
+ *
+ */
+HRESULT WINAPI DllRegisterServer(void)
+{
+ FIXME(":stub\n");
+ return S_OK;
+}
+
+
+/******************************************************************
+ * DllCanUnloadNow (DPNHPAST.@)
+ *
+ *
+ */
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+ return S_FALSE;
+}
+
+
+/******************************************************************
+ * DllGetClassObject (DPNHPAST.@)
+ *
+ *
+ */
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
+{
+ FIXME(":stub\n");
+ return E_FAIL;
+}
+
+
+/******************************************************************
+ * DllUnregisterServer (DPNHPAST.@)
+ *
+ *
+ */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+ FIXME(":stub\n");
+ return S_OK;
+}
diff --git a/dll/directx/wine/dpnhpast/version.rc b/dll/directx/wine/dpnhpast/version.rc
new file mode 100644
index 0000000000..7552f7de0a
--- /dev/null
+++ b/dll/directx/wine/dpnhpast/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2003 Rok Mandeljc
+ *
+ * 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 DirectPlay NAT Helper PAST"
+#define WINE_FILENAME_STR "dpnhpast.dll"
+#define WINE_FILEVERSION 5,3,0,901
+#define WINE_FILEVERSION_STR "5.3.0.901"
+#define WINE_PRODUCTVERSION 5,3,0,901
+#define WINE_PRODUCTVERSION_STR "5.3"
+
+#include "wine/wine_common_ver.rc"
diff --git a/media/doc/README.WINE b/media/doc/README.WINE
index a073dcc37a..f0d7244ca1 100644
--- a/media/doc/README.WINE
+++ b/media/doc/README.WINE
@@ -35,6 +35,7 @@ reactos/dll/directx/wine/dinput8 # Synced to WineStaging-3.3
reactos/dll/directx/wine/dmusic # Synced to WineStaging-4.0
reactos/dll/directx/wine/dplay # Synced to WineStaging-3.3
reactos/dll/directx/wine/dplayx # Synced to WineStaging-3.17
+reactos/dll/directx/wine/dpnhpast # Synced to WineStaging-4.5
reactos/dll/directx/wine/dsound # Synced to Wine-1.3.29
reactos/dll/directx/wine/dxdiagn # Synced to WineStaging-3.3
reactos/dll/directx/wine/msdmo # Synced to WineStaging-3.17