[PATCH v10 8/8] wimgapi: Add WIMSetFileIOCallbackTemporaryPath stub.

Mohamad Al-Jaf mohamadaljaf at gmail.com
Mon Apr 11 20:06:32 CDT 2022


The Windows Media Creation Tool crashes on this
unimplemented function.

Signed-off-by: Mohamad Al-Jaf <mohamadaljaf at gmail.com>
---
 dlls/wimgapi/main.c       | 7 +++++++
 dlls/wimgapi/wimgapi.spec | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/dlls/wimgapi/main.c b/dlls/wimgapi/main.c
index 1e43ca2d9f7..f867de0cd1b 100644
--- a/dlls/wimgapi/main.c
+++ b/dlls/wimgapi/main.c
@@ -54,3 +54,10 @@ BOOL WINAPI WIMInitFileIOCallbacks(LPVOID callbacks)
     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     return 0;
 }
+
+BOOL WINAPI WIMSetFileIOCallbackTemporaryPath(LPWSTR path)
+{
+    FIXME("(%s) stub\n", debugstr_w(path));
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return 0;
+}
diff --git a/dlls/wimgapi/wimgapi.spec b/dlls/wimgapi/wimgapi.spec
index 5df9a2eebae..42e628e1092 100644
--- a/dlls/wimgapi/wimgapi.spec
+++ b/dlls/wimgapi/wimgapi.spec
@@ -31,7 +31,7 @@
 @ stdcall WIMRegisterMessageCallback(long ptr ptr)
 @ stub WIMRemountImage
 @ stub WIMSetBootImage
-@ stub WIMSetFileIOCallbackTemporaryPath
+@ stdcall WIMSetFileIOCallbackTemporaryPath(wstr)
 @ stub WIMSetImageInformation
 @ stub WIMSetReferenceFile
 @ stub WIMSetTemporaryFile
-- 
2.35.1




More information about the wine-devel mailing list