Skip to content

Commit

Permalink
fix potential sort order bug #40
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed Oct 16, 2021
1 parent 175dcb5 commit d02a8a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Binary file modified Plugins/x86/uWindowCapture.dll
Binary file not shown.
Binary file modified Plugins/x86_64/uWindowCapture.dll
Binary file not shown.
4 changes: 4 additions & 0 deletions Scripts/UwcLib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public static class Lib
private static extern IntPtr GetMessages_Internal();
[DllImport(name, EntryPoint = "UwcClearMessages")]
private static extern void ClearMessages();
[DllImport(name, EntryPoint = "UwcExcludeRemovedWindowEvents")]
private static extern void ExcludeRemovedWindowEvents();
[DllImport(name, EntryPoint = "UwcCheckWindowExistence")]
public static extern bool CheckWindowExistence(int id);
[DllImport(name, EntryPoint = "UwcGetWindowHandle")]
Expand Down Expand Up @@ -229,6 +231,8 @@ public static class Lib

public static Message[] GetMessages()
{
ExcludeRemovedWindowEvents();

var count = GetMessageCount();
var messages = new Message[count];

Expand Down

0 comments on commit d02a8a4

Please sign in to comment.