ole: Prefer services over servers.

Attempt to start as a local service before attempting to start as a
local server for the CLSCTX_LOCAL_SERVER case.
This commit is contained in:
Robert Shearman 2006-01-09 18:40:42 +01:00 committed by Alexandre Julliard
parent e0605afdf6
commit 1eda42ccac
1 changed files with 2 additions and 2 deletions

View File

@ -797,8 +797,8 @@ HRESULT RPC_GetLocalClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
hPipe = CreateFileW(pipefn, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0);
if (hPipe == INVALID_HANDLE_VALUE) {
if (tries == 1) {
if ( (hres = create_server(rclsid)) &&
(hres = create_local_service(rclsid)) )
if ( (hres = create_local_service(rclsid)) &&
(hres = create_server(rclsid)) )
return hres;
Sleep(1000);
} else {