Global (Windows): prefers NTAPI for querying registry values

This commit is contained in:
李通洲 committed 2026-03-13 13:27:58 +08:00
1 parent 6ed8aac6bb
commit ea6ad4ac86
15 files changed
+575 -201

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
const char* ffDetectWallpaper(FFstrbuf* result)
{
FF_HKEY_AUTO_DESTROY hKey = NULL;
FF_AUTO_CLOSE_FD HANDLE hKey = NULL;
if(!ffRegOpenKeyForRead(HKEY_CURRENT_USER, L"Control Panel\\Desktop", &hKey, NULL))
return "ffRegOpenKeyForRead(Control Panel\\Desktop) failed";