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:
@@ -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.
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user