This commit is contained in:
love-code-yeyixiao 2024-03-03 09:41:43 +08:00
parent 8df4f03e4a
commit 5721f78df5
1 changed files with 3 additions and 3 deletions

View File

@ -1476,7 +1476,7 @@ _FX HDC Gui_GetDC(HWND hWnd)
SetLastError(ERROR_ACCESS_DENIED);
return NULL;
}
ULONG_PTR pid, tid;
ULONG_PTR pid=0, tid=0;
if (!Gui_IsSameBox(hWnd, pid, tid)) {
SetLastError(ERROR_ACCESS_DENIED);
return NULL;
@ -1492,7 +1492,7 @@ _FX HDC Gui_GetWindowDC(HWND hWnd)
SetLastError(ERROR_ACCESS_DENIED);
return NULL;
}
ULONG_PTR pid, tid;
ULONG_PTR pid = 0, tid = 0;
if (!Gui_IsSameBox(hWnd, pid, tid)) {
SetLastError(ERROR_ACCESS_DENIED);
return NULL;
@ -1508,7 +1508,7 @@ _FX HDC Gui_GetDCEx(HWND hWnd,HRGN hrgnClip,DWORD flags)
SetLastError(ERROR_ACCESS_DENIED);
return NULL;
}
ULONG_PTR pid, tid;
ULONG_PTR pid = 0, tid = 0;
if (!Gui_IsSameBox(hWnd, pid, tid)) {
SetLastError(ERROR_ACCESS_DENIED);
return NULL;