Robert Shearman : ole32: Return errors if the attempt to start a LocalService object fails.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 28 12:35:26 CDT 2006


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Mon Aug 28 14:19:13 2006 +0100

ole32: Return errors if the attempt to start a LocalService object fails.

---

 dlls/ole32/rpc.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c
index cf55b4c..32c8318 100644
--- a/dlls/ole32/rpc.c
+++ b/dlls/ole32/rpc.c
@@ -833,12 +833,17 @@ static HRESULT create_local_service(REFC
             RegQueryValueExW(hkey, szServiceParams, NULL, &type, (LPBYTE)args[0], &sz);
         }
         r = start_local_service(buf, num_args, (LPCWSTR *)args);
-        if (r==ERROR_SUCCESS)
-            hres = S_OK;
+        if (r != ERROR_SUCCESS)
+            hres = REGDB_E_CLASSNOTREG; /* FIXME: check retval */
         HeapFree(GetProcessHeap(),0,args[0]);
     }
+    else
+    {
+        WARN("No LocalService value\n");
+        hres = REGDB_E_CLASSNOTREG; /* FIXME: check retval */
+    }
     RegCloseKey(hkey);
-        
+
     return hres;
 }
 




More information about the wine-cvs mailing list