mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-10 14:46:14 +01:00
Replaced _countof / ARRAYSIZE with std::size
This commit is contained in:
@@ -564,7 +564,7 @@ namespace
|
||||
wchar_t version[32] = {};
|
||||
|
||||
wchar_t appName[_MAX_PATH] = {};
|
||||
if (GetModuleFileNameW(nullptr, appName, _countof(appName)))
|
||||
if (GetModuleFileNameW(nullptr, appName, static_cast<DWORD>(std::size(appName))))
|
||||
{
|
||||
DWORD size = GetFileVersionInfoSizeW(appName, nullptr);
|
||||
if (size > 0)
|
||||
|
||||
Reference in New Issue
Block a user