summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-08-25 13:40:47 +0200
committerMichael Stahl <mstahl@redhat.com>2014-08-25 13:41:32 +0200
commitdf1f6debb793eea6e57914391a7174e0eafe3667 (patch)
treeaa577a3d63ef2e86769dbd98cf9f2e95219b23e3 /sal
parent27d79b12e17a93f6e4eab2a3c09d423a4a04a63d (diff)
fix this C file for Microsoft Pascal compiler
Change-Id: I08086caacb7abe0c85aeb184935b3f73666e9faf
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/dllentry.c5
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 ) )