We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f97546b commit 623c059Copy full SHA for 623c059
src/native/corehost/comhost/comhost.cpp
@@ -339,15 +339,14 @@ namespace
339
340
RegKey regKey{ regKeyRaw };
341
342
- // Set the default value for all COM host servers
343
- const WCHAR defServerName[] = _X("CoreCLR COMHost Server");
+ // Set the default value, type name - this matches RegAsm behavior.
344
res = ::RegSetValueExW(
345
regKey.get(),
346
nullptr,
347
0,
348
REG_SZ,
349
- reinterpret_cast<const BYTE*>(defServerName),
350
- static_cast<DWORD>(sizeof(defServerName)));
+ reinterpret_cast<const BYTE*>(entry.type.c_str()),
+ static_cast<DWORD>(entry.type.size() + 1) * sizeof(entry.type[0]));
351
if (res != ERROR_SUCCESS)
352
return __HRESULT_FROM_WIN32(res);
353
0 commit comments