From 22d6c90e0aec24d283de2b0506b8656865c76e7b Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Mon, 15 Oct 2007 11:49:41 +0000 Subject: INTEGRATION: CWS sb71 (1.18.246); FILE MERGED 2007/08/21 10:42:48 hro 1.18.246.1: #i77184# CoInitializeEx is available on Windows base line (98) so no need to check for DCOM update --- sal/osl/w32/thread.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'sal/osl/w32') diff --git a/sal/osl/w32/thread.c b/sal/osl/w32/thread.c index 3a93868a6433..e39733f307a8 100644 --- a/sal/osl/w32/thread.c +++ b/sal/osl/w32/thread.c @@ -4,9 +4,9 @@ * * $RCSfile: thread.c,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: rt $ $Date: 2005-09-08 15:13:03 $ + * last change: $Author: vg $ $Date: 2007-10-15 12:49:41 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -59,11 +59,6 @@ typedef struct _osl_TThreadImpl static unsigned __stdcall oslWorkerWrapperFunction(void* pData); static oslThread oslCreateThread(oslWorkerFunction pWorker, void* pThreadData, sal_uInt32 nFlags); -static HRESULT WINAPI osl_CoInitializeEx(LPVOID pvReserved, DWORD dwCoInit); - -typedef HRESULT (WINAPI *CoInitializeEx_PROC)(LPVOID pvReserved, DWORD dwCoInit); - -CoInitializeEx_PROC _CoInitializeEx = osl_CoInitializeEx; /*****************************************************************************/ /* oslWorkerWrapperFunction */ @@ -74,7 +69,7 @@ static unsigned __stdcall oslWorkerWrapperFunction(void* pData) /* Initialize COM */ - _CoInitializeEx(NULL, COINIT_MULTITHREADED); + CoInitializeEx(NULL, COINIT_MULTITHREADED); /* call worker-function with data */ @@ -126,16 +121,6 @@ static oslThread oslCreateThread(oslWorkerFunction pWorker, return (oslThread)pThreadImpl; } -/*****************************************************************************/ -/* osl_ CoInitializeEx */ -/*****************************************************************************/ - -static HRESULT WINAPI osl_CoInitializeEx(LPVOID pvReserved, DWORD dwCoInit) -{ - dwCoInit = dwCoInit; /* avoid warnigns */ - return CoInitialize( pvReserved ); -} - /*****************************************************************************/ /* osl_createThread */ /*****************************************************************************/ -- cgit