From 423ef23e4371f9375350b315f2b34baea7084645 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 21 Jun 2013 18:56:20 -0400 Subject: [PATCH] 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 --- lib/krb5/config_reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/config_reg.c b/lib/krb5/config_reg.c index 04a499d2c..27425e72c 100644 --- a/lib/krb5/config_reg.c +++ b/lib/krb5/config_reg.c @@ -190,7 +190,7 @@ _krb5_store_string_to_reg_value(krb5_context context, GetLastError()); } - rcode = RegSetValueEx(key, valuename, 0, type, dwData, sizeof(DWORD)); + rcode = RegSetValueEx(key, valuename, 0, type, (BYTE *)&dwData, sizeof(DWORD)); if (rcode) { if (context)