Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aef84332
Commit
aef84332
authored
Feb 21, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Expand initial directory path for file open dialog.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b7cc4409
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
filedlg.c
dlls/comdlg32/filedlg.c
+7
-5
No files found.
dlls/comdlg32/filedlg.c
View file @
aef84332
...
...
@@ -504,15 +504,17 @@ static BOOL GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType)
else
fodInfos
.
filename
=
NULL
;
fodInfos
.
initdir
=
NULL
;
if
(
ofn
->
lpstrInitialDir
)
{
/* fodInfos.initdir = strdupW(ofn->lpstrInitialDir); */
DWORD
len
=
lstrlenW
(
ofn
->
lpstrInitialDir
)
+
1
;
fodInfos
.
initdir
=
MemAlloc
(
len
*
sizeof
(
WCHAR
));
memcpy
(
fodInfos
.
initdir
,
ofn
->
lpstrInitialDir
,
len
*
sizeof
(
WCHAR
));
DWORD
len
=
ExpandEnvironmentStringsW
(
ofn
->
lpstrInitialDir
,
NULL
,
0
);
if
(
len
)
{
fodInfos
.
initdir
=
MemAlloc
(
len
*
sizeof
(
WCHAR
));
ExpandEnvironmentStringsW
(
ofn
->
lpstrInitialDir
,
fodInfos
.
initdir
,
len
);
}
}
else
fodInfos
.
initdir
=
NULL
;
/* save current directory */
if
(
ofn
->
Flags
&
OFN_NOCHANGEDIR
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment