2009-12-11 20:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbwin/win_regc.c
    ! WIN_REGSETVALUEEX(): Off by one bug fixed in prev commit.
This commit is contained in:
Viktor Szakats
2009-12-11 19:25:45 +00:00
parent aa13701479
commit dd2d2762fc
2 changed files with 7 additions and 1 deletions

View File

@@ -17,6 +17,10 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-11 20:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_regc.c
! WIN_REGSETVALUEEX(): Off by one bug fixed in prev commit.
2009-12-11 20:16 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_winbase.c
* Eliminated hb_parclen() call in WAPI_FORMATMESSAGE() function.

View File

@@ -204,6 +204,8 @@ HB_FUNC( WIN_REGSETVALUEEX )
HB_SIZE nValueLen;
LPCTSTR lpValue = HB_PARSTR( 5, &hValue, &nValueLen );
++nValueLen;
#if defined( UNICODE )
nValueLen *= 2;
#endif
@@ -213,7 +215,7 @@ HB_FUNC( WIN_REGSETVALUEEX )
0,
dwType,
( const BYTE * ) lpValue,
( DWORD ) nValueLen + 1 ) == ERROR_SUCCESS );
( DWORD ) nValueLen ) == ERROR_SUCCESS );
hb_strfree( hValue );
}