https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ef6711c9047d37c1c5b7ac4c72fedfbf78280c3e

commit ef6711c9047d37c1c5b7ac4c72fedfbf78280c3e
Author:     Serge Gautherie <[email protected]>
AuthorDate: Thu May 21 18:52:50 2020 +0200
Commit:     GitHub <[email protected]>
CommitDate: Fri May 22 01:52:50 2020 +0900

    [SYSSETUP] DoWriteProductOption(): Fix 'pData' copypastas (#2826)
    
    Addendum to 612729b09272aeb693e156de6b5991891951dbf2.
    
    CORE-17069
---
 dll/win32/syssetup/wizard.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dll/win32/syssetup/wizard.c b/dll/win32/syssetup/wizard.c
index 6564407c5a9..ad2e9c71847 100644
--- a/dll/win32/syssetup/wizard.c
+++ b/dll/win32/syssetup/wizard.c
@@ -395,13 +395,13 @@ static const WCHAR s_szProductOptions[] = 
L"SYSTEM\\CurrentControlSet\\Control\\
 static const WCHAR s_szRosVersion[] = 
L"SYSTEM\\CurrentControlSet\\Control\\ReactOS\\Settings\\Version";
 static const WCHAR s_szControlWindows[] = 
L"SYSTEM\\CurrentControlSet\\Control\\Windows";
 
-typedef struct PRODUCT_OPTION_DATA
+typedef struct _PRODUCT_OPTION_DATA
 {
     LPCWSTR ProductSuite;
     LPCWSTR ProductType;
     DWORD ReportAsWorkstation;
     DWORD CSDVersion;
-} PRODUCT_OPTION_DATA, *LPPRODUCT_OPTION_DATA;
+} PRODUCT_OPTION_DATA;
 
 static const PRODUCT_OPTION_DATA s_ProductOptionData[] =
 {
@@ -430,7 +430,7 @@ DoWriteProductOption(PRODUCT_OPTION nOption)
     /* write ProductSuite */
     pszData = pData->ProductSuite;
     cbData = (lstrlenW(pszData) + 2) * sizeof(WCHAR);
-    error = RegSetValueExW(hKey, L"ProductSuite", 0, REG_MULTI_SZ, (const BYTE 
*)pData, cbData);
+    error = RegSetValueExW(hKey, L"ProductSuite", 0, REG_MULTI_SZ, (const BYTE 
*)pszData, cbData);
     if (error)
     {
         DPRINT1("RegSetValueExW failed\n");
@@ -440,7 +440,7 @@ DoWriteProductOption(PRODUCT_OPTION nOption)
     /* write ProductType */
     pszData = pData->ProductType;
     cbData = (lstrlenW(pszData) + 1) * sizeof(WCHAR);
-    error = RegSetValueExW(hKey, L"ProductType", 0, REG_SZ, (const BYTE 
*)pData, cbData);
+    error = RegSetValueExW(hKey, L"ProductType", 0, REG_SZ, (const BYTE 
*)pszData, cbData);
     if (error)
     {
         DPRINT1("RegSetValueExW failed\n");

Reply via email to