diff dep/animone/src/win/win32.cc @ 267:09c5bd74fe93

win32: make builds work again
author Paper <paper@paper.us.eu.org>
date Thu, 11 Apr 2024 23:39:18 -0400
parents 862d0d8619f6
children b1f625b0227c
line wrap: on
line diff
--- a/dep/animone/src/win/win32.cc	Thu Apr 11 22:05:41 2024 -0400
+++ b/dep/animone/src/win/win32.cc	Thu Apr 11 23:39:18 2024 -0400
@@ -9,6 +9,7 @@
 #include "animone.h"
 #include "animone/util/win32.h"
 #include "animone/win.h"
+#include "animone/fd.h"
 
 #include <set>
 #include <string>
@@ -120,9 +121,9 @@
 
 	Process process;
 	process.pid = GetWindowProcessId(hwnd);
-	process.name = fd::GetProcessName(process.pid)
+	GetProcessName(process.pid, process.name);
 
-	    auto& window_proc = *reinterpret_cast<window_proc_t*>(param);
+	auto& window_proc = *reinterpret_cast<window_proc_t*>(param);
 	if (!window_proc(process, window))
 		return FALSE;