vkd3d: Fix MSVC warning about redundant snprintf argument.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
parent
04c020525c
commit
55a6847c61
|
@ -2979,7 +2979,7 @@ HRESULT vkd3d_pipeline_library_init_disk_cache(struct vkd3d_pipeline_library_dis
|
|||
else if (path)
|
||||
snprintf(cache->read_path, sizeof(cache->read_path), "%s%svkd3d-proton.cache", path, separator);
|
||||
else
|
||||
snprintf(cache->read_path, sizeof(cache->read_path), "vkd3d-proton.cache", path);
|
||||
strcpy(cache->read_path, "vkd3d-proton.cache");
|
||||
|
||||
for (i = 0, n = strlen(cache->read_path); i < n; i++)
|
||||
if (cache->read_path[i] == '/')
|
||||
|
|
Loading…
Reference in New Issue