[Libreoffice-commits] core.git: sal/osl

Michael Stahl mstahl at redhat.com
Mon Aug 25 04:42:35 PDT 2014


 sal/osl/w32/dllentry.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit df1f6debb793eea6e57914391a7174e0eafe3667
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Aug 25 13:40:47 2014 +0200

    fix this C file for Microsoft Pascal compiler
    
    Change-Id: I08086caacb7abe0c85aeb184935b3f73666e9faf

diff --git a/sal/osl/w32/dllentry.c b/sal/osl/w32/dllentry.c
index f16cab7..dc30f8d 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 ) )


More information about the Libreoffice-commits mailing list