mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-04 16:24:29 +01:00
[dxgi] MultiByteToWideChar counts length in characters
This commit is contained in:
parent
e4d3357e55
commit
aea4162198
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user