Skip to content

Commit 12ac413

Browse files
committed
Update System.cpp
1 parent b148a24 commit 12ac413

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/System/System.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <bitset>
3737
#include <list>
3838
#include <vector>
39+
#include <exception>
3940

4041
#undef DELETE
4142

@@ -672,9 +673,9 @@ void handleFileDrop(HDROP hDrop, InputEvents& events, bool isInsideMessageLoop)
672673

673674
try
674675
{
675-
// Handle long paths
676676
if (wstr.length() > MAX_PATH)
677677
{
678+
// Prefix it with \\?\ to allow longer paths.
678679
WideString prefix(L"\\\\?\\");
679680
prefix.append(wstr);
680681
wstr = prefix;

0 commit comments

Comments
 (0)