Processing (Windows): fix get current process

This commit is contained in:
李通洲 committed 2025-01-08 20:37:35 +08:00
1 parent 88917cb14f
commit 6226ccc70e
1 file changed
+1 -1
+1 -1
View File
@@ -169,7 +169,7 @@ bool ffProcessGetInfoWindows(uint32_t pid, uint32_t* ppid, FFstrbuf* pname, FFst
? GetCurrentProcess()
: OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, pid);
if (hProcess == INVALID_HANDLE_VALUE)
if (hProcess == NULL)
return false;
if (gui)