WineMine is not retaining settings because the registry key used in
LoadBoard() is not the same as the one used in SaveBoard().

Also fixed a typo in the position saving code.


--- main.c     Wed Apr  5 20:37:56 2000
+++ main.c      Sun Apr  9 09:43:15 2000
@@ -295,9 +295,9 @@
     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 @@
     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;

Reply via email to