mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: wrong parameter passed to getModuleFileName
The size was passed in bytes, not in number of TCHARs. Signed-off-by: Vladislav Ryabov <vladislav.ryabov@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
12f597bc72
commit
6d41a6bc40
@@ -23,7 +23,7 @@ std::string getCurrentLibraryPath() {
|
||||
reinterpret_cast<LPCWSTR>(&getCurrentLibraryPath), &handle);
|
||||
if (status != 0) {
|
||||
|
||||
status = NEO::SysCalls::getModuleFileName(handle, pathW, sizeof(pathW));
|
||||
status = NEO::SysCalls::getModuleFileName(handle, pathW, MAX_PATH);
|
||||
if (status != 0) {
|
||||
std::wcstombs(path, pathW, MAX_PATH);
|
||||
returnValue.append(path);
|
||||
|
||||
Reference in New Issue
Block a user