Commit a15b9fb8 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

winecfg: Fix virtual desktop selection.

parent 3b597af0
...@@ -363,9 +363,12 @@ char *get_reg_key(HKEY root, const char *path, const char *name, const char *def ...@@ -363,9 +363,12 @@ char *get_reg_key(HKEY root, const char *path, const char *name, const char *def
wRet = get_reg_keyW(root, wpath, wname, wdef); wRet = get_reg_keyW(root, wpath, wname, wdef);
len = WideCharToMultiByte(CP_ACP, 0, wRet, -1, szRet, 0, NULL, NULL); len = WideCharToMultiByte(CP_ACP, 0, wRet, -1, NULL, 0, NULL, NULL);
szRet = HeapAlloc(GetProcessHeap(), 0, len); if (len)
WideCharToMultiByte(CP_ACP, 0, wRet, -1, szRet, len, NULL, NULL); {
szRet = HeapAlloc(GetProcessHeap(), 0, len);
WideCharToMultiByte(CP_ACP, 0, wRet, -1, szRet, len, NULL, NULL);
}
HeapFree(GetProcessHeap(), 0, wpath); HeapFree(GetProcessHeap(), 0, wpath);
HeapFree(GetProcessHeap(), 0, wname); HeapFree(GetProcessHeap(), 0, wname);
...@@ -397,7 +400,7 @@ static void set_reg_key_ex(HKEY root, const WCHAR *path, const WCHAR *name, cons ...@@ -397,7 +400,7 @@ static void set_reg_key_ex(HKEY root, const WCHAR *path, const WCHAR *name, cons
assert( path != NULL ); assert( path != NULL );
WINE_TRACE("path=%s, name=%s, value=%p\n", wine_dbgstr_w(path), WINE_TRACE("path=%s, name=%s, value=%s\n", wine_dbgstr_w(path),
wine_dbgstr_w(name), wine_dbgstr_w(value)); wine_dbgstr_w(name), wine_dbgstr_w(value));
/* firstly, see if we already set this setting */ /* firstly, see if we already set this setting */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment