http://bugs.winehq.org/show_bug.cgi?id=26764
Summary: winecfg is picking up the wrong Windows version Product: Wine Version: 1.3.17 Platform: x86-64 URL: http://source.winehq.org/source/programs/winecfg/appde faults.c?v=wine-1.3.17#L38 OS/Version: Linux Status: NEW Keywords: download, source Severity: minor Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: kennybobs@o2.co.uk
1. Open winecfg 2. Select Windows 7 3. OK to close 4. Open winecfg
2008R2 is selected.
The problem appears to be that winecfg is pulling the build version from the registry - but different versions of Windows can use the same kernel and hence have the same build number (such as 7 and 2008R2).
build_str = get_reg_key( HKEY_LOCAL_MACHINE, szKeyNT, "CurrentBuildNumber", NULL );
isn't enough information for winecfg to know which version you selected last time.
A +winecfg trace shows this happening.
This has only become obvious now 2008R2 has been added, but XP x64 SP2 and 2008 SP2 will suffer the same fate (when added).
What I can make out from the code it seems to store szVersion but doesn't retrieve it. Obviously, I have no idea how to fix it or I would have sent a patch.