Windows: _krb5_store_string_to_reg_value REG_DWORD

If the registry type is NONE and the string is all numeric or
if the type is DWORD, the string is converted to a DWORD and then
stored into the registry as a REG_DWORD using RegSetValueEx().
The input parameter should be a pointer to the DWORD variable not
its value.

Change-Id: I9ff12121c6c17eb5afb2ea89adf8bb9cc6aa3a89
This commit is contained in:
Jeffrey Altman
2013-06-21 18:56:20 -04:00
parent f80cc553f8
commit 423ef23e43

View File

@@ -190,7 +190,7 @@ _krb5_store_string_to_reg_value(krb5_context context,
GetLastError()); GetLastError());
} }
rcode = RegSetValueEx(key, valuename, 0, type, dwData, sizeof(DWORD)); rcode = RegSetValueEx(key, valuename, 0, type, (BYTE *)&dwData, sizeof(DWORD));
if (rcode) if (rcode)
{ {
if (context) if (context)