mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: correct issues with clang tidy
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
28c6dbf8c1
commit
e301418423
@@ -292,7 +292,7 @@ LSTATUS regQueryValueExA(HKEY hKey, LPCSTR lpValueName, LPDWORD lpReserved, LPDW
|
||||
if (strcmp(lpValueName, "settingSourceString") == 0) {
|
||||
const auto settingSource = "registry";
|
||||
if (lpData) {
|
||||
strcpy(reinterpret_cast<char *>(lpData), settingSource);
|
||||
strcpy_s(reinterpret_cast<char *>(lpData), strlen(settingSource) + 1u, settingSource);
|
||||
} else {
|
||||
*lpcbData = static_cast<DWORD>(strlen(settingSource) + 1u);
|
||||
if (lpType) {
|
||||
@@ -330,7 +330,7 @@ LSTATUS regQueryValueExA(HKEY hKey, LPCSTR lpValueName, LPDWORD lpReserved, LPDW
|
||||
}
|
||||
} else if (driverStorePath && (strcmp(lpValueName, "DriverStorePathForComputeRuntime") == 0)) {
|
||||
if (lpData) {
|
||||
strcpy(reinterpret_cast<char *>(lpData), driverStorePath);
|
||||
strcpy_s(reinterpret_cast<char *>(lpData), strlen(driverStorePath) + 1u, driverStorePath);
|
||||
}
|
||||
if (lpcbData) {
|
||||
*lpcbData = static_cast<DWORD>(strlen(driverStorePath) + 1u);
|
||||
|
||||
Reference in New Issue
Block a user