Remove some unneeded casts
This also changes the API used in WriteLibraryToRegistry. Change-Id: Iba4c20567275a64684be8695c771e4c5535956ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168912 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
@@ -71,7 +71,7 @@ namespace {
|
||||
pos += suffix.copy(pos, suffix.size());
|
||||
assert(pos == end - 1);
|
||||
*pos = 0;
|
||||
if (ERROR_SUCCESS == RegSetValueExW(HKEY_LOCAL_MACHINE, pSubKey, 0, REG_SZ, reinterpret_cast<const BYTE*>(pLibrary), nLen*sizeof(wchar_t)))
|
||||
if (ERROR_SUCCESS == RegSetKeyValueW(HKEY_LOCAL_MACHINE, pSubKey, nullptr, REG_SZ, pLibrary, nLen*sizeof(wchar_t)))
|
||||
bLocalSuccess = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user