File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 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
4040 };
4141
4242 std::wstring payload;
43- if (GetOpenFileNameW (&ofn) && wcsnlen_s (pathBuffer, sizeof (pathBuffer)) > 0 ) {
43+ if (GetOpenFileNameW (&ofn) && wcsnlen_s (pathBuffer, std::size (pathBuffer)) > 0 ) {
4444 std::wifstream file{ pathBuffer };
4545 payload = std::wstring (
4646 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
4343 bool failed = false ;
4444
4545 // 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 ) {
4747 std::wofstream file{ pathBuffer };
4848 file << pArgObj->GetDictionary ()->GetString (" payload" ).ToWString ();
4949 failed = !file.good ();
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ namespace p2c::infra::util
7070 }
7171 else
7272 {
73- appPath = std::filesystem::current_path ().wstring ();
73+ docPath = std::filesystem::current_path ().wstring ();
7474 }
7575
7676 // 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