mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-18 22:54:15 +01:00
[dxgi] Don't use std::mbstowcs.
This will not work in winelib build.
This commit is contained in:
parent
294bdf5bd4
commit
a12b3cc5a0
@ -165,7 +165,8 @@ namespace dxvk {
|
||||
}
|
||||
|
||||
std::memset(pDesc->Description, 0, sizeof(pDesc->Description));
|
||||
std::mbstowcs(pDesc->Description, deviceProp.deviceName, std::size(pDesc->Description) - 1);
|
||||
::MultiByteToWideChar(CP_UTF8, 0, deviceProp.deviceName, -1, pDesc->Description,
|
||||
sizeof(pDesc->Description));
|
||||
|
||||
VkDeviceSize deviceMemory = 0;
|
||||
VkDeviceSize sharedMemory = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user