Skip to content

[win] Fix opening multiple files with native dialog (fix aseprite/aseprite#5698) - #190

Merged
dacap merged 1 commit into
aseprite:mainfrom
dacap:fix-open-files
Jul 20, 2026
Merged

[win] Fix opening multiple files with native dialog (fix aseprite/aseprite#5698)#190
dacap merged 1 commit into
aseprite:mainfrom
dacap:fix-open-files

Conversation

@dacap

@dacap dacap commented Jul 20, 2026

Copy link
Copy Markdown
Member

…prite#5698)

There were two issues:
1. Stop reading "childRead" handle too early. We have to keep reading
   the child process output until we receive an error from ReadFile(),
   we don't need an extra m_closingRead flag.
2. Discarding some extra read bytes after the first '\r\n' is
   found. We have to keep reading and building each line even when
   the buffer is full.
@dacap dacap self-assigned this Jul 20, 2026

@aseprite-bot aseprite-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@@ -21,7 +21,6 @@
#include <shobjidl.h>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'shobjidl.h' file not found [clang-diagnostic-error]

#include <shobjidl.h>
         ^

@dacap
dacap merged commit 2f74810 into aseprite:main Jul 20, 2026
12 checks passed
@dacap
dacap temporarily deployed to github-pages July 20, 2026 13:21 — with GitHub Pages Inactive
@dacap
dacap deleted the fix-open-files branch July 20, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File not found when opening 3 or more aseprite project at the same time

2 participants