[Bug 6662] Unimplemented function SetupGetSourceFileSizeA

Wine Bugs wine-bugs at winehq.org
Sun Nov 12 11:16:34 CST 2006


http://bugs.winehq.org/show_bug.cgi?id=6662





------- Additional Comments From doctormo at gmail.com  2006-12-11 11:16 -------
Unknown way to attach files, summited as comment instead.

idff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index d0a6d22..1efdab1 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -415,8 +415,8 @@ # Yes, Microsoft really misspelled this 
 @ stdcall SetupGetMultiSzFieldW(ptr long ptr long ptr)
 @ stub SetupGetSourceFileLocationA
 @ stub SetupGetSourceFileLocationW
-@ stub SetupGetSourceFileSizeA
-@ stub SetupGetSourceFileSizeW
+@ stdcall SetupGetSourceFileSizeA(ptr ptr str str ptr long)
+@ stdcall SetupGetSourceFileSizeW(ptr ptr wstr wstr ptr long)
 @ stdcall SetupGetSourceInfoA(ptr long long str long ptr)
 @ stdcall SetupGetSourceInfoW(ptr long long wstr long ptr)
 @ stdcall SetupGetStringFieldA(ptr long ptr long ptr)
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index a250924..caaf43e 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -140,6 +140,32 @@ BOOL WINAPI SetupCopyOEMInfW(PCWSTR sour
 }
 
 /***********************************************************************
+ *      SetupGetSourceFileSizeA  (SETUPAPI.@)
+ */
+BOOL WINAPI SetupGetSourceFileSizeA(HINF hinf, PINFCONTEXT context, PCSTR filename,
+                                    PCSTR section, PDWORD size, UINT rounding)
+{
+    FIXME("(%p, %p, %s, %s, %p, %d) stub\n", hinf, context, debugstr_a(filename),
+           debugstr_a(section), size, rounding);
+
+    if (size) *size = 1024 * 1024;
+    return TRUE;
+}
+
+/***********************************************************************
+ *      SetupGetSourceFileSizeW  (SETUPAPI.@)
+ */
+BOOL WINAPI SetupGetSourceFileSizeW(HINF hinf, PINFCONTEXT context, PCWSTR
filename,
+                                    PCWSTR section, PDWORD size, UINT rounding)
+{
+    FIXME("(%p, %p, %s, %s, %p, %d) stub\n", hinf, context, debugstr_w(filename),
+           debugstr_w(section), size, rounding);
+
+    if (size) *size = 1024 * 1024;
+    return TRUE;
+}
+
+/***********************************************************************
  *      SetupGetSourceInfoA  (SETUPAPI.@)
  */
 BOOL WINAPI SetupGetSourceInfoA(HINF InfHandle, UINT SourceId, UINT InfoDesired,



-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list