diff --git a/harbour/ChangeLog b/harbour/ChangeLog index a4ad7b8e7a..656e62c15a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-12-12 19:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbwin/win_misc.c + ! Fixed declaration following code. + 2009-12-12 19:27 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/mapi.c + Added support for UNICODE. diff --git a/harbour/contrib/hbwin/win_misc.c b/harbour/contrib/hbwin/win_misc.c index 490b0cda4e..5b1a30d1dd 100644 --- a/harbour/contrib/hbwin/win_misc.c +++ b/harbour/contrib/hbwin/win_misc.c @@ -75,6 +75,9 @@ HB_FUNC( WIN_RUNDETACHED ) void * hCommandName; void * hCommandLine; + HB_SIZE nLen; + LPCTSTR lpCommandRO = HB_PARSTR( 2, &hCommandLine, &nLen ); + #if ! defined( HB_OS_WIN_CE ) STARTUPINFO si; PROCESS_INFORMATION pi; @@ -84,9 +87,6 @@ HB_FUNC( WIN_RUNDETACHED ) ZeroMemory( &pi, sizeof( pi ) ); #endif - HB_SIZE nLen; - LPCTSTR lpCommandRO = HB_PARSTR( 2, &hCommandLine, &nLen ); - if( CreateProcess( HB_PARSTR( 1, &hCommandName, NULL ), /* Command name */ HB_STRUNSHARE( &hCommandLine, lpCommandRO, nLen ), /* Command line (Unicode version needs an non-const buffer) */