-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory corruption and other issues
ExecThread.gd: Use `thread` as the sentinal because in an empty Dictionary does not have an identity in godot 4 (and paranoia) Fall back to OS.execute() in windows if the DLL fails to load. exec.cpp: Add a bunch of new debug_print (stripped when DEBUG is not defined) CreateChildProcess takes handles as references now so it can properly set the value to INVALID_HANDLE_VALUE when it closes handles. (this fixes the Memory Corruption caused by calling CloseHandle on a closed handle) Pass a buffer copy into CreateProcessW() because String::unicode_str() returns a const (more paranoia)
- Loading branch information
1 parent
392950c
commit c924d7b
Showing
2 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters