mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[WINESYNC] Initial bootstrap for setupapi partial sync.
Start syncing at wine-1.9.4 for: - query.c - setupcab.c [WINESYNC] Initial bootstrap for setupapi dialog.c partial sync. Start syncing at wine-1.9.15 [WINESYNC]: revert wine-staging patchset for setupapi
This commit is contained in:
parent
6994a8f76c
commit
8c5282d277
2 changed files with 4 additions and 30 deletions
|
@ -233,35 +233,6 @@ 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;
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
directories: null
|
||||
files:
|
||||
dlls/setupapi/dialog.c: dll/win32/setupapi/dialog.c
|
||||
dlls/setupapi/query.c: dll/win32/setupapi/query.c
|
||||
dlls/setupapi/queue.c: dll/win32/setupapi/queue.c
|
||||
dlls/setupapi/setupcab.c: dll/win32/setupapi/setupcab.c
|
||||
dlls/setupapi/stringtable.c: dll/win32/setupapi/stringtable_wine.c
|
||||
tags:
|
||||
wine: 9edfb14c6be13f599aafe5e300986f10e6fb999d
|
||||
wine: wine-1.9.15
|
||||
|
|
Loading…
Reference in a new issue