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
35ac0e7a
Commit
35ac0e7a
authored
Jan 22, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Don't clobber the original filename if .inf is found.
parent
dd44e2e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
misc.c
dlls/setupapi/misc.c
+10
-13
No files found.
dlls/setupapi/misc.c
View file @
35ac0e7a
...
...
@@ -1068,23 +1068,20 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location,
if
(
!
(
ret
=
CopyFileW
(
source
,
target
,
TRUE
)))
return
ret
;
wcscpy
(
pnf_path
,
target
);
PathRemoveExtensionW
(
pnf_path
);
PathAddExtensionW
(
pnf_path
,
L".pnf"
);
if
((
pnf_file
=
_wfopen
(
pnf_path
,
L"w"
)))
{
fputws
(
PNF_HEADER
,
pnf_file
);
fputws
(
source
,
pnf_file
);
fclose
(
pnf_file
);
}
done:
if
(
style
&
SP_COPY_DELETESOURCE
)
DeleteFileW
(
source
);
if
(
ret
)
{
wcscpy
(
pnf_path
,
target
);
PathRemoveExtensionW
(
pnf_path
);
PathAddExtensionW
(
pnf_path
,
L".pnf"
);
if
((
pnf_file
=
_wfopen
(
pnf_path
,
L"w"
)))
{
fputws
(
PNF_HEADER
,
pnf_file
);
fputws
(
source
,
pnf_file
);
fclose
(
pnf_file
);
}
}
size
=
lstrlenW
(
target
)
+
1
;
if
(
dest
)
{
...
...
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