From ca7f923270f2811323822b178bca91f3726ae8e9 Mon Sep 17 00:00:00 2001 From: Dave Pickles Date: Sun, 9 Apr 2000 18:37:50 +0000 Subject: [PATCH] Registry key used in LoadBoard() was not the same as the one used in SaveBoard(). Also fixed a typo in the position saving code. --- programs/winemine/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/winemine/main.c b/programs/winemine/main.c index 3d4dc799ff1..e7d494a8a38 100644 --- a/programs/winemine/main.c +++ b/programs/winemine/main.c @@ -295,9 +295,9 @@ void LoadBoard( BOARD *p_board ) size = sizeof( data ); if( RegQueryValueEx( hkey, "Ypos", NULL, (LPDWORD) &type, (LPBYTE) data, (LPDWORD) &size ) == ERROR_SUCCESS ) - p_board->pos.x = atoi( data ); + p_board->pos.y = atoi( data ); else - p_board->pos.x = GetSystemMetrics( SM_CYMENU ) + p_board->pos.y = GetSystemMetrics( SM_CYMENU ) + GetSystemMetrics( SM_CYCAPTION ) + GetSystemMetrics( SM_CYFIXEDFRAME ); @@ -370,7 +370,7 @@ void SaveBoard( BOARD *p_board ) char key_name[8]; if( RegCreateKeyEx( HKEY_LOCAL_MACHINE, - "Software\\The WINE team\\WineMine", 0, NULL, + "Software\\Wine\\WineMine", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, &sa, &hkey, &disp ) != ERROR_SUCCESS) return;