From c58278758c0aad2254aec671945b9e85057667ce Mon Sep 17 00:00:00 2001 From: Jan Kanis Date: Tue, 22 Jan 2013 10:27:14 +0100 Subject: [PATCH] reader_interrupted() should only be called on the main thread. fixes #537 --- wildcard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wildcard.cpp b/wildcard.cpp index e21eb9548..1241e5e73 100644 --- a/wildcard.cpp +++ b/wildcard.cpp @@ -728,7 +728,7 @@ static int wildcard_expand_internal(const wchar_t *wc, // debug( 3, L"WILDCARD_EXPAND %ls in %ls", wc, base_dir ); - if (reader_interrupted()) + if (is_main_thread() && reader_interrupted()) { return -1; }