uxtheme: Return E_NOTIMPL in HRESULT stub functions.

Sebastian Lackner sebastian at fds-team.de
Tue Sep 13 16:26:39 CDT 2016


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

./dlls/uxtheme/draw.c:1629:5: warning: Returning type 'int' in function with HRESULT return type [wine-hresult-check]
    return ERROR_CALL_NOT_IMPLEMENTED;
    ^
./dlls/uxtheme/system.c:765:5: warning: Returning type 'int' in function with HRESULT return type [wine-hresult-check]
    return ERROR_CALL_NOT_IMPLEMENTED;
    ^
./dlls/uxtheme/system.c:1191:5: warning: Returning type 'int' in function with HRESULT return type [wine-hresult-check]
    return ERROR_CALL_NOT_IMPLEMENTED;
    ^

 dlls/uxtheme/draw.c   |    2 +-
 dlls/uxtheme/system.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/uxtheme/draw.c b/dlls/uxtheme/draw.c
index 753ac36..8f0eabe 100644
--- a/dlls/uxtheme/draw.c
+++ b/dlls/uxtheme/draw.c
@@ -1626,7 +1626,7 @@ HRESULT WINAPI DrawThemeIcon(HTHEME hTheme, HDC hdc, int iPartId, int iStateId,
     FIXME("%d %d: stub\n", iPartId, iStateId);
     if(!hTheme)
         return E_HANDLE;
-    return ERROR_CALL_NOT_IMPLEMENTED;
+    return E_NOTIMPL;
 }
 
 /***********************************************************************
diff --git a/dlls/uxtheme/system.c b/dlls/uxtheme/system.c
index 7d07680..625be24 100644
--- a/dlls/uxtheme/system.c
+++ b/dlls/uxtheme/system.c
@@ -762,7 +762,7 @@ HRESULT WINAPI HitTestThemeBackground(HTHEME hTheme, HDC hdc, int iPartId,
     FIXME("%d %d 0x%08x: stub\n", iPartId, iStateId, dwOptions);
     if(!hTheme)
         return E_HANDLE;
-    return ERROR_CALL_NOT_IMPLEMENTED;
+    return E_NOTIMPL;
 }
 
 /***********************************************************************
@@ -1188,7 +1188,7 @@ HRESULT WINAPI ParseThemeIniFile(LPCWSTR pszIniFileName, LPWSTR pszUnknown,
                                  ParseThemeIniFileProc callback, LPVOID lpData)
 {
     FIXME("%s %s: stub\n", debugstr_w(pszIniFileName), debugstr_w(pszUnknown));
-    return ERROR_CALL_NOT_IMPLEMENTED;
+    return E_NOTIMPL;
 }
 
 /**********************************************************************
-- 
2.9.0



More information about the wine-patches mailing list