Commit 51a04d5b authored by Erich Hoover's avatar Erich Hoover Committed by Alexandre Julliard

regedit: Fix import mangling REG_EXPAND_SZ values.

parent 273b4065
......@@ -394,7 +394,7 @@ static LONG setValue(WCHAR* val_name, WCHAR* val_data, BOOL is_unicode)
if (!lpbData)
return ERROR_INVALID_DATA;
if(dwDataType == REG_MULTI_SZ && !is_unicode)
if((dwDataType == REG_MULTI_SZ || dwDataType == REG_EXPAND_SZ) && !is_unicode)
{
LPBYTE tmp = lpbData;
lpbData = (LPBYTE)GetWideStringN((char*)lpbData, dwLen, &dwLen);
......
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