Skip to content

Commit 6226ccc

Browse files
committed
Processing (Windows): fix get current process
1 parent 88917cb commit 6226ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/processing_windows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ bool ffProcessGetInfoWindows(uint32_t pid, uint32_t* ppid, FFstrbuf* pname, FFst
169169
? GetCurrentProcess()
170170
: OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, pid);
171171

172-
if (hProcess == INVALID_HANDLE_VALUE)
172+
if (hProcess == NULL)
173173
return false;
174174

175175
if (gui)

0 commit comments

Comments
 (0)