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
edda4637
Commit
edda4637
authored
Dec 29, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Make sure that parent directories exist when creating a new directory.
parent
6b955b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
cabinet_main.c
dlls/cabinet/cabinet_main.c
+11
-0
No files found.
dlls/cabinet/cabinet_main.c
View file @
edda4637
...
...
@@ -237,7 +237,18 @@ static INT_PTR fdi_notify_extract(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pf
/* create the destination directory if it doesn't exist */
if
(
GetFileAttributesA
(
szDirectory
)
==
INVALID_FILE_ATTRIBUTES
)
{
char
*
ptr
;
for
(
ptr
=
szDirectory
+
strlen
(
pDestination
->
Destination
)
+
1
;
*
ptr
;
ptr
++
)
{
if
(
*
ptr
==
'\\'
)
{
*
ptr
=
0
;
CreateDirectoryA
(
szDirectory
,
NULL
);
*
ptr
=
'\\'
;
}
}
CreateDirectoryA
(
szDirectory
,
NULL
);
}
hFile
=
CreateFileA
(
szFullPath
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
...
...
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