mirror of https://github.com/dahall/Vanara.git
Fixed bug introduced by GetMessage fix
parent
2bed2f1065
commit
59df2f4159
|
@ -81,7 +81,7 @@ namespace Vanara.PInvoke
|
|||
timeoutTimerId = SetTimer(uElapse: (uint)timeout.TotalMilliseconds);
|
||||
|
||||
Running = true;
|
||||
while (GetMessage(out var msg))
|
||||
while (GetMessage(out var msg) != 0)
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine($"Message loop: message={msg.message}");
|
||||
try { ProcessMessage?.Invoke(this, new MessageEventArgs(msg)); } catch { }
|
||||
|
|
Loading…
Reference in New Issue