Skip to content

Commit

Permalink
Make local variable static so the varible as argument is always acces…
Browse files Browse the repository at this point in the history
…sible
  • Loading branch information
donho committed Sep 29, 2024
1 parent efc306a commit 1037b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerEditor/src/MISC/Common/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,7 @@ DWORD WINAPI getFileAttributesWorker(void* data)

DWORD getFileAttrWaitFewSec(const wchar_t* filePath)
{
GetAttrParamResult data;
static GetAttrParamResult data;
data._fileAttr = INVALID_FILE_ATTRIBUTES;
data._filePath = filePath;
HANDLE hThread = ::CreateThread(NULL, 0, getFileAttributesWorker, &data, 0, NULL);
Expand Down

0 comments on commit 1037b2a

Please sign in to comment.