Andrew Nguyen : wineboot: Set the FeatureSet value in the volatile CPU registry keys.

Alexandre Julliard julliard at winehq.org
Thu Apr 7 07:36:46 CDT 2011


Module: wine
Branch: stable
Commit: 364701af0123c4482ebc4ba8ba0e32dfbe62b930
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=364701af0123c4482ebc4ba8ba0e32dfbe62b930

Author: Andrew Nguyen <anguyen at codeweavers.com>
Date:   Mon Dec 27 06:54:14 2010 -0600

wineboot: Set the FeatureSet value in the volatile CPU registry keys.
(cherry picked from commit 0c8820563c8df325c6ab8c54fbbbdcb49491bf7b)

---

 programs/wineboot/wineboot.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
index b69ceed..3c873ee 100644
--- a/programs/wineboot/wineboot.c
+++ b/programs/wineboot/wineboot.c
@@ -173,6 +173,7 @@ static void create_hardware_registry_keys(void)
                                     'S','y','s','t','e','m',0};
     static const WCHAR fpuW[] = {'F','l','o','a','t','i','n','g','P','o','i','n','t','P','r','o','c','e','s','s','o','r',0};
     static const WCHAR cpuW[] = {'C','e','n','t','r','a','l','P','r','o','c','e','s','s','o','r',0};
+    static const WCHAR FeatureSetW[] = {'F','e','a','t','u','r','e','S','e','t',0};
     static const WCHAR IdentifierW[] = {'I','d','e','n','t','i','f','i','e','r',0};
     static const WCHAR SysidW[] = {'A','T',' ','c','o','m','p','a','t','i','b','l','e',0};
     static const WCHAR mhzKeyW[] = {'~','M','H','z',0};
@@ -216,6 +217,7 @@ static void create_hardware_registry_keys(void)
         if (!RegCreateKeyExW( cpu_key, numW, 0, NULL, REG_OPTION_VOLATILE,
                               KEY_ALL_ACCESS, NULL, &hkey, NULL ))
         {
+            RegSetValueExW( hkey, FeatureSetW, 0, REG_DWORD, (BYTE *)&sci.FeatureSet, sizeof(DWORD) );
             set_reg_value( hkey, IdentifierW, idW );
             /*TODO; report amd's properly*/
             set_reg_value( hkey, VendorIdentifierW, VenidIntelW );




More information about the wine-cvs mailing list