Changeset 1494
- Timestamp:
- 10/10/08 14:08:59 (3 months ago)
- Files:
-
- wine-doors/trunk/src/ui.py (modified) (1 diff)
- wine-doors/trunk/src/wine.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wine-doors/trunk/src/ui.py
r1492 r1494 399 399 for i in range( len( win_versions ) ): 400 400 win_versions_model.append( win_versions[i] ) 401 if wine.GetWindowsVersion() == [ win_versions[i][1], win_versions[i][2] ]: 401 win_version = wine.GetWindowsVersion() 402 if win_version == [ win_versions[i][1], win_versions[i][2], win_versions[i][3] ]: 402 403 wn_prefs['cb_winver'].set_active( i ) 403 404 wine-doors/trunk/src/wine.py
r1493 r1494 51 51 win32_windows = self.getRegistry( "HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion", "VersionNumber" ) 52 52 if win32_windows != "": 53 return [ win32_windows, self.WIN32_WINDOWS_PLATFORM ] 53 return [ win32_windows, 54 self.WIN32_WINDOWS_PLATFORM, 55 self.getRegistry( "HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion", "CSDVersion" ) ] 54 56 else: 55 57 return [ self.getRegistry( "HKLM\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion", "CurrentVersion" ), 56 self.WIN32_NT_PLATFORM ] 58 self.WIN32_NT_PLATFORM, 59 self.getRegistry( "HKLM\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion", "CSDVersion" ) ] 57 60 58 61 def SetWindowsVersion( self, version, platform, service_pack = False ):
