mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 03:23:34 +08:00
[WINESYNC] Initial bootstrap for setupapi dll and winetest partial sync.
- Initial sync config file; - Add reconstructed WineStaging v4.0 setupapi patches that were originally applied (and need to be reverted).
This commit is contained in:
parent
3a78283730
commit
8b145d1312
6
sdk/tools/winesync/setupapi.cfg
Normal file
6
sdk/tools/winesync/setupapi.cfg
Normal file
@ -0,0 +1,6 @@
|
||||
directories:
|
||||
dlls/setupapi: dll/win32/setupapi
|
||||
dlls/setupapi/tests: modules/rostests/winetests/setupapi
|
||||
files: null
|
||||
tags:
|
||||
wine: wine-4.0
|
@ -0,0 +1,57 @@
|
||||
From e53b61c73dfb02450206ace1f7c9e90734344991 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?=
|
||||
<hermes.belusca-maito@reactos.org>
|
||||
Date: Wed, 6 Sep 2023 21:59:48 +0200
|
||||
Subject: [PATCH 1/3] wine-staging 4.0 setupapi dll
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
|
||||
---
|
||||
dll/win32/setupapi/dialog.c | 29 ++
|
||||
1 files changed, 29 insertions(+)
|
||||
|
||||
diff --git a/dll/win32/setupapi/dialog.c b/dll/win32/setupapi/dialog.c
|
||||
index fc74cfc1727..4c4f8c6a840 100644
|
||||
--- a/dll/win32/setupapi/dialog.c
|
||||
+++ b/dll/win32/setupapi/dialog.c
|
||||
@@ -243,6 +243,35 @@ UINT WINAPI SetupPromptForDiskW(HWND hwndParent, PCWSTR DialogTitle, PCWSTR Disk
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return DPROMPT_CANCEL;
|
||||
}
|
||||
+
|
||||
+ if (PathToSource && (DiskPromptStyle & IDF_CHECKFIRST))
|
||||
+ {
|
||||
+ static const WCHAR format[] = {'%', 's', '\\', '%', 's', '\0'};
|
||||
+ WCHAR filepath[MAX_PATH];
|
||||
+
|
||||
+ if (strlenW(PathToSource) + 1 + strlenW(FileSought) < sizeof(filepath))
|
||||
+ {
|
||||
+ snprintfW(filepath, MAX_PATH, format, PathToSource, FileSought);
|
||||
+
|
||||
+ if (GetFileAttributesW(filepath) != INVALID_FILE_ATTRIBUTES)
|
||||
+ {
|
||||
+ if (PathRequiredSize)
|
||||
+ *PathRequiredSize = strlenW(PathToSource) + 1;
|
||||
+
|
||||
+ if (!PathBuffer)
|
||||
+ return DPROMPT_SUCCESS;
|
||||
+
|
||||
+ if (PathBufferSize >= strlenW(PathToSource) + 1)
|
||||
+ {
|
||||
+ strcpyW(PathBuffer, PathToSource);
|
||||
+ return DPROMPT_SUCCESS;
|
||||
+ }
|
||||
+ else
|
||||
+ return DPROMPT_BUFFERTOOSMALL;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
params.DialogTitle = DialogTitle;
|
||||
params.DiskName = DiskName;
|
||||
params.PathToSource = PathToSource;
|
||||
--
|
||||
2.36.1.windows.1
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user