Don't pass unused pointers to RegCreateKeyEx() - this prevents score

saving on Windows 2000.
This commit is contained in:
Pavel Roskin 2003-10-04 03:07:16 +00:00 committed by Alexandre Julliard
parent 7760413f6b
commit e3f6ed2d68
1 changed files with 2 additions and 4 deletions

View File

@ -384,17 +384,15 @@ void LoadBoard( BOARD *p_board )
void SaveBoard( BOARD *p_board ) void SaveBoard( BOARD *p_board )
{ {
DWORD disp;
HKEY hkey; HKEY hkey;
SECURITY_ATTRIBUTES sa;
unsigned i; unsigned i;
char data[16]; char data[16];
char key_name[8]; char key_name[8];
if( RegCreateKeyEx( HKEY_LOCAL_MACHINE, if( RegCreateKeyEx( HKEY_LOCAL_MACHINE,
"Software\\Wine\\WineMine", 0, NULL, "Software\\Wine\\WineMine", 0, NULL,
REG_OPTION_NON_VOLATILE, KEY_WRITE, &sa, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL,
&hkey, &disp ) != ERROR_SUCCESS) &hkey, NULL ) != ERROR_SUCCESS)
return; return;
wsprintf( data, "%d", p_board->pos.x ); wsprintf( data, "%d", p_board->pos.x );