Hans Leidekker : mscms: Use the return values of GetStandardColorSpaceProfileW and GetColorDirectoryW (clang).

Alexandre Julliard julliard at winehq.org
Mon Feb 6 15:17:54 CST 2012


Module: wine
Branch: master
Commit: 0cf1bdf96e1049bd9fda3bdaeaaf486a7505c201
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0cf1bdf96e1049bd9fda3bdaeaaf486a7505c201

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri Feb  3 10:48:03 2012 +0100

mscms: Use the return values of GetStandardColorSpaceProfileW and GetColorDirectoryW (clang).

---

 dlls/mscms/profile.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c
index c4eae9d..54e4afd 100644
--- a/dlls/mscms/profile.c
+++ b/dlls/mscms/profile.c
@@ -253,13 +253,12 @@ BOOL WINAPI GetColorDirectoryA( PCSTR machine, PSTR buffer, PDWORD size )
     {
         ret = GetColorDirectoryW( NULL, NULL, &sizeW );
         *size = sizeW / sizeof(WCHAR);
-        return FALSE;
+        return ret;
     }
 
     sizeW = *size * sizeof(WCHAR);
 
     bufferW = HeapAlloc( GetProcessHeap(), 0, sizeW );
-
     if (bufferW)
     {
         if ((ret = GetColorDirectoryW( NULL, bufferW, &sizeW )))
@@ -594,11 +593,10 @@ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile
     {
         ret = GetStandardColorSpaceProfileW( NULL, id, NULL, &sizeW );
         *size = sizeW / sizeof(WCHAR);
-        return FALSE;
+        return ret;
     }
 
     profileW = HeapAlloc( GetProcessHeap(), 0, sizeW );
-
     if (profileW)
     {
         if ((ret = GetStandardColorSpaceProfileW( NULL, id, profileW, &sizeW )))




More information about the wine-cvs mailing list