Make the bool a class member instead.

This commit is contained in:
The Dax 2014-01-22 18:36:40 -05:00
parent 97a5382b50
commit b58746816a
2 changed files with 2 additions and 1 deletions

View File

@ -188,7 +188,6 @@ void GenericListControl::Update()
void GenericListControl::ResizeColumns() void GenericListControl::ResizeColumns()
{ {
static volatile bool inResizeColumns = false;
if (inResizeColumns) if (inResizeColumns)
return; return;
inResizeColumns = true; inResizeColumns = true;

View File

@ -52,4 +52,6 @@ private:
wchar_t stringBuffer[256]; wchar_t stringBuffer[256];
bool valid; bool valid;
bool sendInvalidRows; bool sendInvalidRows;
// Used for hacky workaround to fix a rare hang (see issue #5184)
volatile bool inResizeColumns;
}; };