Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smok95 committed Jul 20, 2021
1 parent 15387c1 commit 2865277
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,0,8,0
PRODUCTVERSION 0,0,8,0
FILEVERSION 0,0,9,0
PRODUCTVERSION 0,0,9,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -69,12 +69,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "TODO: <ȸ�� �̸�>"
VALUE "FileDescription", "https://github.com/smok95/kw_"
VALUE "FileVersion", "0.0.8.0"
VALUE "FileVersion", "0.0.9.0"
VALUE "InternalName", "kw_.dll"
VALUE "LegalCopyright", "Copyright (C) 2021 Kim, Jong-Kook"
VALUE "OriginalFilename", "kw_.dll"
VALUE "ProductName", "TODO: <��ǰ �̸�>"
VALUE "ProductVersion", "0.0.8.0"
VALUE "ProductVersion", "0.0.9.0"
END
END
BLOCK "VarFileInfo"
Expand Down
10 changes: 4 additions & 6 deletions src/kw_.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,12 +592,10 @@ void kw_Wait() {
void kw_Sleep(int msec) {
MSG msg;
auto tick = GetTickCount64();
while (PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE)) {
TranslateMessage(&msg);
DispatchMessage(&msg);

if (msec < (GetTickCount64() - tick)) {
break;
while (msec > (GetTickCount64() - tick)) {
if (PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
}
Expand Down

0 comments on commit 2865277

Please sign in to comment.