We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d01b04 commit 040ae9bCopy full SHA for 040ae9b
IntelPresentMon/AppCef/source/util/async/BrowseReadSpec.h
@@ -40,7 +40,7 @@ namespace p2c::client::util::async
40
};
41
42
std::wstring payload;
43
- if (GetOpenFileNameW(&ofn) && wcsnlen_s(pathBuffer, sizeof(pathBuffer)) > 0) {
+ if (GetOpenFileNameW(&ofn) && wcsnlen_s(pathBuffer, std::size(pathBuffer)) > 0) {
44
std::wifstream file{ pathBuffer };
45
payload = std::wstring(
46
std::istreambuf_iterator<wchar_t>{ file },
0 commit comments