diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-06-15 23:35:45 +0500 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-06-17 14:15:24 +0200 |
commit | 750d56bc867b0f58228c5d5b663ba0e9a2424f82 (patch) | |
tree | 4bfe0449916e178f39ead462b924cb9f9af74903 /embedserv | |
parent | 1e27983ce1c1433c6bdc1be9550a307a5bf357a5 (diff) |
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>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168992
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/inprocserv/dllentry.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embedserv/source/inprocserv/dllentry.cxx b/embedserv/source/inprocserv/dllentry.cxx index 4cc8ebdc6024..4b430336d7e5 100644 --- a/embedserv/source/inprocserv/dllentry.cxx +++ b/embedserv/source/inprocserv/dllentry.cxx @@ -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; } |