http://bugs.winehq.org/show_bug.cgi?id=58169
Bug ID: 58169 Summary: Trae installer fails: "Failed to expand shell folder constant userpf" Product: Wine Version: 10.6 Hardware: x86-64 URL: https://lf-cdn.trae.ai/obj/trae-ai-us/pkg/app/releases /stable/1.0.12120/win32/Trae-Setup-x64.exe OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: shell32 Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Distribution: Debian
Someone reported this on reddit.
A messagebox appears with the message mentioned in the title, and the installer exits.
Patch below makes the installer succeed, but I'm too unfamiliar with the code in shellpath.c to know id this is right. Any pointers welcome.
diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index 1a52717651e..20670b854b2 100644 --- a/dlls/shell32/shellpath.c +++ b/dlls/shell32/shellpath.c @@ -2039,7 +2039,7 @@ static const CSIDL_DATA CSIDL_Data[] = }, { /* 0x6e */ .id = &FOLDERID_UserProgramFiles, - .type = CSIDL_Type_Disallowed, /* FIXME */ + .type = CSIDL_Type_User,//CSIDL_Type_Disallowed, /* FIXME */ .category = KF_CATEGORY_PERUSER, .name = L"UserProgramFiles", .parent = &FOLDERID_LocalAppData,