erengy / taiga

A lightweight anime tracker for Windows
https://taiga.moe
GNU General Public License v3.0
2.1k stars 225 forks source link

Path is longer than MAX_PATH #1105

Open darkred3 opened 1 year ago

darkred3 commented 1 year ago

Cannot open a file whose path is apparently too long. 2022-12-30 18:17:07 [Warning] file.cpp:139 ShellExecuteW | Path is longer than MAX_PATH: C:\Users\XXXXXXX\Desktop\Torrent Downloads\Scissor.Seven.S01-03.1080p.NF.WEB-DL.DDP2.0.x264-GST [Multi-Dub][Multi-Subs]\Scissor.Seven.S01.1080p.NF.WEB-DL.DDP2.0.x264-GST\Scissor.Seven.S01E05.Assassinating.a.Domineering.Grannie.1080p.NF.WEB-DL.DDP2.0.x264-GST.mkv

Should this not have been fixed with the 2022-11-02 update?

erengy commented 1 year ago

Relevant commit: a5505240aa95944508c9410a73e053bfb81e99b6

According to Microsoft's documentation:

I can confirm that Taiga is unable to open that file path, even though my system meets the conditions above. It seems as if the function succeeds, since ShellExecuteEx returns TRUE and GetLastError returns ERROR_SUCCESS. So I'm not sure what's going wrong there.