On Saturday 11 November 2006 22:59, Martin Owens wrote:

> How easy would it be for one of you guys to add this missing
> functionality (see log below)? It prevents the installer working for
> "Nations WWII Fighter Command" and yet the game should work once
> installed.

Please open a bug in bugzilla for this problem and try the attached
stub implementation for SetupGetSourceFileSize.

 -Hans
diff --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,


Reply via email to