From: Austin English <austinenglish@gmail.com>
Subject: oleaut32: add a stub for OleSavePictureFile
Message-Id: <CACC5Q1d9BSpmyExkiR11MhqqNjtHjtQ+v6vkjmTQ+sAabL-Brw@mail.gmail.com>
Date: Wed, 4 Feb 2015 20:36:22 -0600

Fixes https://bugs.winehq.org/show_bug.cgi?id=30016 (tested with Shadomania
installer).

-- 
-Austin

<div dir="ltr">Fixes <a href="https://bugs.winehq.org/show_bug.cgi?id=30016">https://bugs.winehq.org/show_bug.cgi?id=30016</a> (tested with Shadomania installer).<br clear="all"><div><br>-- <br><div class="gmail_signature">-Austin</div>
</div></div>

diff --git a/dlls/oleaut32/oleaut32.spec b/dlls/oleaut32/oleaut32.spec
index a68eb0c..998184c 100644
--- a/dlls/oleaut32/oleaut32.spec
+++ b/dlls/oleaut32/oleaut32.spec
@@ -391,7 +391,7 @@
 420 stdcall OleCreateFontIndirect(ptr ptr ptr)
 421 stdcall OleTranslateColor(long long long)
 422 stub OleLoadPictureFile
-423 stub OleSavePictureFile
+423 stdcall OleSavePictureFile(ptr ptr)
 424 stdcall OleLoadPicturePath(wstr ptr long long ptr ptr)
 425 stdcall VarUI4FromI8(int64 ptr)
 426 stdcall VarUI4FromUI8(int64 ptr)
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index 599042c..dfaf6f4 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -2302,6 +2302,15 @@ HRESULT WINAPI OleLoadPictureEx( LPSTREAM lpstream, LONG lSize, BOOL fRunmode,
 }
 
 /***********************************************************************
+ * OleSavePictureFile (OLEAUT32.423)
+ */
+HRESULT WINAPI OleSavePictureFile(IDispatch *picture, BSTR filename)
+{
+  FIXME("(%p %s): stub\n", picture, debugstr_w(filename));
+  return CTL_E_FILENOTFOUND;
+}
+
+/***********************************************************************
  * OleLoadPicturePath (OLEAUT32.424)
  */
 HRESULT WINAPI OleLoadPicturePath( LPOLESTR szURLorPath, LPUNKNOWN punkCaller,