winecfg: Set autodetect windows version to what it realy is - win2k
Vitaliy Margolen
wine-patch at kievinfo.com
Mon Oct 10 10:54:23 CDT 2005
Vitaliy Margolen
changelog:
winecfg:
Set autodetect windows version to what it really is - win2k
-------------- next part --------------
Index: programs/winecfg/appdefaults.c
===================================================================
RCS file: /home/wine/wine/programs/winecfg/appdefaults.c,v
retrieving revision 1.19
diff -u -p -r1.19 appdefaults.c
--- programs/winecfg/appdefaults.c 17 Aug 2005 11:37:34 -0000 1.19
+++ programs/winecfg/appdefaults.c 10 Oct 2005 15:50:19 -0000
@@ -315,8 +315,24 @@ static void on_winver_change(HWND dialog
if (selection == 0)
{
- WINE_TRACE("automatic/default selected so removing current setting\n");
- set_reg_key(config_key, keypath(""), "Version", NULL);
+ /* There is no automatic version detection. Set it to win2k */
+ if (!current_app)
+ {
+ int i;
+ for (i = 0; i < NB_VERSIONS; i++)
+ if (!strcasecmp (win_versions[i].szVersion, "win2k"))
+ {
+ selection = i;
+ break;
+ }
+ WINE_TRACE("automatic selected - setting Version to win2k\n");
+ set_reg_key(config_key, keypath(""), "Version", "win2k");
+ }
+ else
+ {
+ WINE_TRACE("default selected so removing current setting\n");
+ set_reg_key(config_key, keypath(""), "Version", NULL);
+ }
}
else
{
More information about the wine-patches
mailing list