2012-11-20 11:59 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* harbour/src/vm/cmdarg.c
    ! fixed typo in my previous commit
This commit is contained in:
Przemyslaw Czerpak
2012-11-20 10:59:34 +00:00
parent 735a76584d
commit fb225be171
2 changed files with 6 additions and 2 deletions

View File

@@ -10,6 +10,10 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2012-11-20 11:59 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/src/vm/cmdarg.c
! fixed typo in my previous commit
2012-11-20 11:46 UTC+0100 Viktor Szakats (harbour syenar.net)
* tests/fixcase.hb
* some binaries excluded

View File

@@ -195,13 +195,13 @@ void hb_winmainArgVBuild( void )
iArgC = 1;
lpArgV = ( LPTSTR * ) HeapAlloc( hHeap, 0,
iArgC * sizeof( LPTSTR ) +
nSize * sizeof( TCHAR ) );
nModuleName * sizeof( TCHAR ) );
lpArgV[ 0 ] = ( LPTSTR ) ( lpArgV + iArgC );
}
else
iArgC = 0;
}
if( iArgC > 0 && nModuleName )
if( iArgC > 0 && nModuleName != 0 )
{
/* NOTE: Manually setup the executable name in Windows,
because in console apps the name may be truncated