diff --git a/dll/win32/setupapi/dialog.c b/dll/win32/setupapi/dialog.c index d7a2d7664c1..87757410d6c 100644 --- a/dll/win32/setupapi/dialog.c +++ b/dll/win32/setupapi/dialog.c @@ -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; diff --git a/sdk/tools/winesync/setupapi.cfg b/sdk/tools/winesync/setupapi.cfg index 8f8e67b9165..407c3f26e51 100644 --- a/sdk/tools/winesync/setupapi.cfg +++ b/sdk/tools/winesync/setupapi.cfg @@ -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