File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ namespace p2c::client::util::async
40
40
};
41
41
42
42
std::wstring payload;
43
- if (GetOpenFileNameW (&ofn) && wcsnlen_s (pathBuffer, sizeof (pathBuffer)) > 0 ) {
43
+ if (GetOpenFileNameW (&ofn) && wcsnlen_s (pathBuffer, std::size (pathBuffer)) > 0 ) {
44
44
std::wifstream file{ pathBuffer };
45
45
payload = std::wstring (
46
46
std::istreambuf_iterator<wchar_t >{ file },
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ namespace p2c::client::util::async
43
43
bool failed = false ;
44
44
45
45
// try to write the file to disk
46
- if (confirmed && wcsnlen_s (pathBuffer, sizeof (pathBuffer)) > 0 ) {
46
+ if (confirmed && wcsnlen_s (pathBuffer, std::size (pathBuffer)) > 0 ) {
47
47
std::wofstream file{ pathBuffer };
48
48
file << pArgObj->GetDictionary ()->GetString (" payload" ).ToWString ();
49
49
failed = !file.good ();
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ namespace p2c::infra::util
70
70
}
71
71
else
72
72
{
73
- appPath = std::filesystem::current_path ().wstring ();
73
+ docPath = std::filesystem::current_path ().wstring ();
74
74
}
75
75
76
76
// TODO: this really doesn't belong here, but here it stays until time for something saner
You can’t perform that action at this time.
0 commit comments