diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-08-25 13:40:47 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-08-25 13:41:32 +0200 |
commit | df1f6debb793eea6e57914391a7174e0eafe3667 (patch) | |
tree | aa577a3d63ef2e86769dbd98cf9f2e95219b23e3 | |
parent | 27d79b12e17a93f6e4eab2a3c09d423a4a04a63d (diff) |
fix this C file for Microsoft Pascal compiler
Change-Id: I08086caacb7abe0c85aeb184935b3f73666e9faf
-rw-r--r-- | sal/osl/w32/dllentry.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sal/osl/w32/dllentry.c b/sal/osl/w32/dllentry.c index f16cab7e773a..dc30f8db7ac7 100644 --- a/sal/osl/w32/dllentry.c +++ b/sal/osl/w32/dllentry.c @@ -261,11 +261,12 @@ static DWORD GetParentProcessId() static DWORD WINAPI ParentMonitorThreadProc( LPVOID lpParam ) { - osl_setThreadName("headless ParentMonitorThread"); - DWORD_PTR dwParentProcessId = (DWORD_PTR)lpParam; HANDLE hParentProcess = OpenProcess( SYNCHRONIZE, FALSE, dwParentProcessId ); + + osl_setThreadName("headless ParentMonitorThread"); + if ( IsValidHandle( hParentProcess ) ) { if ( WAIT_OBJECT_0 == WaitForSingleObject( hParentProcess, INFINITE ) ) |