mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:02:58 +00:00
[SYSSETUP] DoWriteProductOption(): Fix 'pData' copypastas (#2826)
Addendum to 612729b092
.
CORE-17069
This commit is contained in:
parent
c3ab469e44
commit
ef6711c904
1 changed files with 4 additions and 4 deletions
|
@ -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_szRosVersion[] = L"SYSTEM\\CurrentControlSet\\Control\\ReactOS\\Settings\\Version";
|
||||||
static const WCHAR s_szControlWindows[] = L"SYSTEM\\CurrentControlSet\\Control\\Windows";
|
static const WCHAR s_szControlWindows[] = L"SYSTEM\\CurrentControlSet\\Control\\Windows";
|
||||||
|
|
||||||
typedef struct PRODUCT_OPTION_DATA
|
typedef struct _PRODUCT_OPTION_DATA
|
||||||
{
|
{
|
||||||
LPCWSTR ProductSuite;
|
LPCWSTR ProductSuite;
|
||||||
LPCWSTR ProductType;
|
LPCWSTR ProductType;
|
||||||
DWORD ReportAsWorkstation;
|
DWORD ReportAsWorkstation;
|
||||||
DWORD CSDVersion;
|
DWORD CSDVersion;
|
||||||
} PRODUCT_OPTION_DATA, *LPPRODUCT_OPTION_DATA;
|
} PRODUCT_OPTION_DATA;
|
||||||
|
|
||||||
static const PRODUCT_OPTION_DATA s_ProductOptionData[] =
|
static const PRODUCT_OPTION_DATA s_ProductOptionData[] =
|
||||||
{
|
{
|
||||||
|
@ -430,7 +430,7 @@ DoWriteProductOption(PRODUCT_OPTION nOption)
|
||||||
/* write ProductSuite */
|
/* write ProductSuite */
|
||||||
pszData = pData->ProductSuite;
|
pszData = pData->ProductSuite;
|
||||||
cbData = (lstrlenW(pszData) + 2) * sizeof(WCHAR);
|
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)
|
if (error)
|
||||||
{
|
{
|
||||||
DPRINT1("RegSetValueExW failed\n");
|
DPRINT1("RegSetValueExW failed\n");
|
||||||
|
@ -440,7 +440,7 @@ DoWriteProductOption(PRODUCT_OPTION nOption)
|
||||||
/* write ProductType */
|
/* write ProductType */
|
||||||
pszData = pData->ProductType;
|
pszData = pData->ProductType;
|
||||||
cbData = (lstrlenW(pszData) + 1) * sizeof(WCHAR);
|
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)
|
if (error)
|
||||||
{
|
{
|
||||||
DPRINT1("RegSetValueExW failed\n");
|
DPRINT1("RegSetValueExW failed\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue