提交 f1aba65b 编写于 作者: J jp9000

UI: Fix game capture check when about to update

To check to see if a file is locked, it must be opened for writing, not
reading.
上级 80561161
......@@ -510,7 +510,7 @@ int AutoUpdateThread::queryUpdate(bool manualUpdate, const char *text_utf8)
static bool IsFileInUse(const wstring &file)
{
WinHandle f = CreateFile(file.c_str(), GENERIC_READ, 0, nullptr,
WinHandle f = CreateFile(file.c_str(), GENERIC_WRITE, 0, nullptr,
OPEN_EXISTING, 0, nullptr);
if (!f.Valid()) {
int err = GetLastError();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册