1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 22:24:13 +01:00

[dxgi] MultiByteToWideChar counts length in characters

This commit is contained in:
Andrew Eikum 2018-11-05 10:31:35 -06:00 committed by Philip Rebohle
parent e4d3357e55
commit aea4162198

View File

@ -161,7 +161,7 @@ namespace dxvk {
// Convert device name
std::memset(pDesc->Description, 0, sizeof(pDesc->Description));
::MultiByteToWideChar(CP_UTF8, 0, deviceProp.deviceName, -1,
pDesc->Description, sizeof(pDesc->Description));
pDesc->Description, sizeof(pDesc->Description) / sizeof(*pDesc->Description));
// Get amount of video memory
// based on the Vulkan heaps