medfall

A super great game engine
Log | Files | Refs

commit a7749811a8f94873062c8a6f85885deedfc5c61e
parent 3a1d34c360ca1650136b08ea25156137417a8d7a
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Jul 16 15:25:55 +0300

RegSetValue instead of RegSetValueEx

Diffstat:
launcher/main.cc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/launcher/main.cc b/launcher/main.cc @@ -482,7 +482,7 @@ void set_registry_key( HKEY hkey, const char * path, const char * value, const c } SCOPE_EXIT( RegCloseKey( key ) ); - LONG ok_set = RegSetValueExA( key, value, 0, REG_SZ, ( const BYTE * ) data, checked_cast< DWORD >( strlen( data ) + 1 ) ); + LONG ok_set = RegSetValueA( key, value, REG_SZ, data, checked_cast< DWORD >( strlen( data ) + 1 ) ); if( ok_set != ERROR_SUCCESS ) { WARN( "couldn't write registry key ({})", ok_set ); } @@ -497,7 +497,7 @@ void set_registry_key( HKEY hkey, const char * path, const char * value, u32 dat } SCOPE_EXIT( RegCloseKey( key ) ); - LONG ok_set = RegSetValueExA( key, value, 0, REG_DWORD, ( const BYTE * ) &data, sizeof( data ) ); + LONG ok_set = RegSetValueA( key, value, REG_DWORD, ( LPCSTR ) &data, sizeof( data ) ); if( ok_set != ERROR_SUCCESS ) { WARN( "couldn't write registry key ({})", ok_set ); }