setupapi: Add stubs for SetupPromptForDisk

Detlef Riekenberg wine.dev at web.de
Sun Nov 5 05:50:15 CST 2006


Avoid a crash in native "printui.dll" for SetupPromptForDiskW


Changelog:
- setupapi: Add stubs for SetupPromptForDisk


-- 
 
By by ... Detlef

-------------- next part --------------
>From 155fe843366cf8f4b9de719c0480f13bf85c9bb7 Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev at web.de>
Date: Sun, 5 Nov 2006 12:42:55 +0100
Subject: [PATCH] setupapi: Add stubs for SetupPromptDorDisk
---
 dlls/setupapi/queue.c       |   28 ++++++++++++++++++++++++++++
 dlls/setupapi/setupapi.spec |    4 ++--
 2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/dlls/setupapi/queue.c b/dlls/setupapi/queue.c
index 3ddb552..6ed6f83 100644
--- a/dlls/setupapi/queue.c
+++ b/dlls/setupapi/queue.c
@@ -1540,3 +1540,31 @@ UINT WINAPI SetupCopyErrorW( HWND parent
            w32error, debugstr_w(sourcefile), debugstr_w(sourcepath) ,debugstr_w(targetpath));
     return DPROMPT_SKIPFILE;
 }
+
+
+/***********************************************************************
+ *      SetupPromptForDiskW(SETUPAPI.@)
+ */
+BOOL WINAPI SetupPromptForDiskW(HWND hwndParent, LPWSTR Title, LPWSTR DiskName, LPWSTR SourcePath, LPWSTR FileName, LPWSTR TagFile, DWORD Style, LPWSTR ResultBuffer, DWORD dwSize, LPDWORD pdwNeeded)
+{
+    FIXME("(%p, %s, %s, %s, %s, %s, 0x%x, %p, %d, %p): stub\n",
+        hwndParent, debugstr_w(Title), debugstr_w(DiskName),
+        debugstr_w(SourcePath), debugstr_w(FileName), debugstr_w(TagFile),
+        Style, ResultBuffer, dwSize, pdwNeeded);
+
+    return DPROMPT_CANCEL;
+}
+
+/***********************************************************************
+ *      SetupPromptForDiskA(SETUPAPI.@)
+ */
+BOOL WINAPI SetupPromptForDiskA(HWND hwndParent, LPSTR Title, LPSTR DiskName, LPSTR SourcePath, LPSTR FileName, LPSTR TagFile, DWORD Style, LPSTR ResultBuffer, DWORD dwSize, LPDWORD pdwNeeded)
+{
+    FIXME("(%p, %s, %s, %s, %s, %s, 0x%x, %p, %d, %p): stub\n",
+        hwndParent, debugstr_a(Title), debugstr_a(DiskName),
+        debugstr_a(SourcePath), debugstr_a(FileName), debugstr_a(TagFile),
+        Style, ResultBuffer, dwSize, pdwNeeded);
+
+    return DPROMPT_CANCEL;
+}
+
diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index d0a6d22..f37567f 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -452,8 +452,8 @@ # Yes, Microsoft really misspelled this 
 @ stdcall SetupOpenInfFileW(wstr wstr long ptr)
 @ stdcall SetupOpenLog(long)
 @ stdcall SetupOpenMasterInf()
-@ stub SetupPromptForDiskA
-@ stub SetupPromptForDiskW
+@ stdcall SetupPromptForDiskA(ptr str str str str str long ptr long ptr)
+@ stdcall SetupPromptForDiskW(ptr wstr wstr wstr wstr wstr long ptr long ptr)
 @ stub SetupPromptReboot
 @ stub SetupQueryDrivesInDiskSpaceListA
 @ stub SetupQueryDrivesInDiskSpaceListW
-- 
1.4.1



More information about the wine-patches mailing list