[PATCH] Corrected return value on file not found for the function GdipCreateStreamOnFile

Stéphane Bisinger stephane.bisinger at gmail.com
Sat Jul 12 08:17:37 CDT 2008


---
 dlls/gdiplus/gdiplus.c |    2 ++
 include/winerror.h     |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.c b/dlls/gdiplus/gdiplus.c
index fb38497..8ce4571 100644
--- a/dlls/gdiplus/gdiplus.c
+++ b/dlls/gdiplus/gdiplus.c
@@ -258,6 +258,8 @@ GpStatus hresult_to_status(HRESULT res)
             return OutOfMemory;
         case E_INVALIDARG:
             return InvalidParameter;
+        case E_FILENOTFOUND:
+            return FileNotFound;
         default:
             return GenericError;
     }
diff --git a/include/winerror.h b/include/winerror.h
index 9cf495e..b90e13b 100644
--- a/include/winerror.h
+++ b/include/winerror.h
@@ -2020,6 +2020,7 @@ static inline HRESULT HRESULT_FROM_WIN32(unsigned long x)
 #define CO_E_DECODEFAILED                                  _HRESULT_TYPEDEF_(0x8004021AL)
 #define CO_E_ACNOTINITIALIZED                              _HRESULT_TYPEDEF_(0x8004021BL)
 
+#define E_FILENOTFOUND                                     _HRESULT_TYPEDEF_(0x80070002L)
 #define E_ACCESSDENIED                                     _HRESULT_TYPEDEF_(0x80070005L)
 #define E_HANDLE                                           _HRESULT_TYPEDEF_(0x80070006L)
 #define E_OUTOFMEMORY                                      _HRESULT_TYPEDEF_(0x8007000EL)
-- 
1.5.4.5




More information about the wine-patches mailing list