We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1091b4 commit 9d01b04Copy full SHA for 9d01b04
IntelPresentMon/AppCef/source/util/async/BrowseStoreSpec.h
@@ -43,7 +43,7 @@ namespace p2c::client::util::async
43
bool failed = false;
44
45
// try to write the file to disk
46
- if (confirmed && wcsnlen_s(pathBuffer, sizeof(pathBuffer)) > 0) {
+ if (confirmed && wcsnlen_s(pathBuffer, std::size(pathBuffer)) > 0) {
47
std::wofstream file{ pathBuffer };
48
file << pArgObj->GetDictionary()->GetString("payload").ToWString();
49
failed = !file.good();
0 commit comments