[Bug 42469] New: GetOpenFileName should expand environment variables in lpstrInitialDir

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Feb 17 17:15:55 CST 2017


https://bugs.winehq.org/show_bug.cgi?id=42469

            Bug ID: 42469
           Summary: GetOpenFileName should expand environment variables in
                    lpstrInitialDir
           Product: Wine
           Version: unspecified
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: comdlg32
          Assignee: wine-bugs at winehq.org
          Reporter: kamil.hornicek at reactos.org
      Distribution: ---

Created attachment 57319
  --> https://bugs.winehq.org/attachment.cgi?id=57319
testcase

When passing an environment variables such as %programfiles% to GetOpenFileName
via lpstrInitialDir these get expanded in Windows 2000 / XP but not in Wine,
where it fails the PathFileExistsW check in filedlg on line 1598 and is later
set to null. I checked and the orignial dll imports ExpandEnvironmentStrings.

Attaching a minimal testcase and a possible solution.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list