diff --git a/VERSION b/VERSION index 28e151fb..93558856 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-rc5-5-g113da121e9+1 \ No newline at end of file +B1-rc5-8-ge3343cbd01+1 \ No newline at end of file diff --git a/c-host/platform/Windows/capture/DXGI/src/dxgi.c b/c-host/platform/Windows/capture/DXGI/src/dxgi.c index 827749a4..3aac2dde 100644 --- a/c-host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/c-host/platform/Windows/capture/DXGI/src/dxgi.c @@ -215,9 +215,8 @@ static bool dxgi_init(void * pointerShape, const unsigned int pointerSize) IDXGIAdapter1_GetDesc1(this->adapter, &adapterDesc); const size_t s = (wcslen(adapterDesc.Description)+1) * 2; - size_t unused; char * desc = malloc(s); - wcstombs_s(&unused, desc, s, adapterDesc.Description, _TRUNCATE); + wcstombs(desc, adapterDesc.Description, s); if (strstr(desc, optAdapter) == NULL) { @@ -238,9 +237,8 @@ static bool dxgi_init(void * pointerShape, const unsigned int pointerSize) if (optOutput) { const size_t s = (wcslen(outputDesc.DeviceName)+1) * 2; - size_t unused; char * desc = malloc(s); - wcstombs_s(&unused, desc, s, outputDesc.DeviceName, _TRUNCATE); + wcstombs(desc, outputDesc.DeviceName, s); if (strstr(desc, optOutput) == NULL) { diff --git a/c-host/platform/Windows/src/platform.c b/c-host/platform/Windows/src/platform.c index 253c70ae..51768527 100644 --- a/c-host/platform/Windows/src/platform.c +++ b/c-host/platform/Windows/src/platform.c @@ -194,9 +194,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine for(int i = 0; i < app.argc; ++i) { const size_t s = (wcslen(wargv[i])+1) * 2; - size_t unused; app.argv[i] = malloc(s); - wcstombs_s(&unused, app.argv[i], s, wargv[i], _TRUNCATE); + wcstombs(app.argv[i], wargv[i], s); } LocalFree(wargv);