diff dep/animone/src/fd/win32.cc @ 343:1faa72660932

*: transfer back to cmake from autotools autotools just made lots of things more complicated than they should have and many things broke (i.e. translations)
author Paper <paper@paper.us.eu.org>
date Thu, 20 Jun 2024 05:56:06 -0400
parents adb79bdde329
children
line wrap: on
line diff
--- a/dep/animone/src/fd/win32.cc	Thu Jun 20 03:03:05 2024 -0400
+++ b/dep/animone/src/fd/win32.cc	Thu Jun 20 05:56:06 2024 -0400
@@ -143,9 +143,11 @@
 /* ------------------------------------------------------------------- */
 
 static bool GetSystemDirectory(std::wstring& str) {
+	/* libtool can't link with -luuid properly. */
+	constexpr uint32_t WindowsDir = 0x24;
 	str.assign(MAX_PATH, '\0');
 
-	return SUCCEEDED(::SHGetFolderPathW(NULL, CSIDL_WINDOWS, NULL, SHGFP_TYPE_CURRENT, &str.front()));
+	return SUCCEEDED(::SHGetFolderPathW(NULL, WindowsDir, NULL, SHGFP_TYPE_CURRENT, &str.front()));
 }
 
 static bool IsSystemDirectory(std::wstring path) {