diff --git a/shared/source/os_interface/windows/driver_info_windows.cpp b/shared/source/os_interface/windows/driver_info_windows.cpp index 4731200f4e..d0b98c3713 100644 --- a/shared/source/os_interface/windows/driver_info_windows.cpp +++ b/shared/source/os_interface/windows/driver_info_windows.cpp @@ -23,7 +23,7 @@ std::string getCurrentLibraryPath() { reinterpret_cast(&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);