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:
Mike Kaganski
2024-06-16 06:32:50 +02:00
parent aaf2967d74
commit 52a2c19fc4
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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;
}