Commit e3f6ed2d authored by Pavel Roskin's avatar Pavel Roskin Committed by Alexandre Julliard

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

saving on Windows 2000.
parent 7760413f
......@@ -384,17 +384,15 @@ void LoadBoard( BOARD *p_board )
void SaveBoard( BOARD *p_board )
{
DWORD disp;
HKEY hkey;
SECURITY_ATTRIBUTES sa;
unsigned i;
char data[16];
char key_name[8];
if( RegCreateKeyEx( HKEY_LOCAL_MACHINE,
"Software\\Wine\\WineMine", 0, NULL,
REG_OPTION_NON_VOLATILE, KEY_WRITE, &sa,
&hkey, &disp ) != ERROR_SUCCESS)
REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL,
&hkey, NULL ) != ERROR_SUCCESS)
return;
wsprintf( data, "%d", p_board->pos.x );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment