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
0d00a74f
Commit
0d00a74f
authored
Aug 20, 2007
by
Mikolaj Zalewski
Committed by
Alexandre Julliard
Aug 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: If needed create directories for fake dlls.
parent
8942b788
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
fakedll.c
dlls/setupapi/fakedll.c
+23
-1
No files found.
dlls/setupapi/fakedll.c
View file @
0d00a74f
...
...
@@ -301,10 +301,32 @@ BOOL create_fake_dll( const WCHAR *name, const WCHAR *source )
}
else
{
if
(
GetLastError
()
==
ERROR_PATH_NOT_FOUND
)
{
WCHAR
*
path
;
WCHAR
*
pathel
;
/* create the directory/directories */
path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
name
)
+
1
)
*
sizeof
(
WCHAR
));
strcpyW
(
path
,
name
);
pathel
=
strchrW
(
path
,
'\\'
);
while
(
pathel
!=
NULL
)
{
*
pathel
=
0
;
if
(
!
CreateDirectoryW
(
path
,
NULL
))
TRACE
(
"Couldn't create directory %s - error: %d
\n
"
,
wine_dbgstr_w
(
path
),
GetLastError
());
*
pathel
=
'\\'
;
pathel
=
strchrW
(
pathel
+
1
,
'\\'
);
}
HeapFree
(
GetProcessHeap
(),
0
,
path
);
}
h
=
CreateFileW
(
name
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_NEW
,
0
,
NULL
);
if
(
h
==
INVALID_HANDLE_VALUE
)
{
WARN
(
"failed to create %s
\n
"
,
debugstr_w
(
name
)
);
ERR
(
"failed to create %s (error=%u)
\n
"
,
debugstr_w
(
name
),
GetLastError
(
)
);
return
FALSE
;
}
}
...
...
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