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
fc1e5789
Commit
fc1e5789
authored
Jan 13, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do a SearchPath before opening the file to improve compatibility with
the native regedit.
parent
4cb9c590
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
regedit.c
programs/regedit/regedit.c
+23
-4
No files found.
programs/regedit/regedit.c
View file @
fc1e5789
...
...
@@ -168,14 +168,33 @@ BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
}
while
(
filename
[
0
])
{
reg_file
=
fopen
(
filename
,
"r"
);
if
(
reg_file
)
{
processRegLines
(
reg_file
,
doSetValue
);
}
else
{
char
*
realname
=
NULL
;
int
size
;
size
=
SearchPath
(
NULL
,
filename
,
NULL
,
0
,
NULL
,
NULL
);
if
(
size
>
0
)
{
realname
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
size
=
SearchPath
(
NULL
,
filename
,
NULL
,
size
,
realname
,
NULL
);
}
if
(
size
==
0
)
{
fprintf
(
stderr
,
"%s: File not found
\"
%s
\"
(%ld)
\n
"
,
getAppName
(),
filename
,
GetLastError
());
exit
(
1
);
}
reg_file
=
fopen
(
realname
,
"r"
);
if
(
reg_file
==
NULL
)
{
perror
(
""
);
fprintf
(
stderr
,
"%s: Can't open file
\"
%s
\"\n
"
,
getAppName
(),
filename
);
exit
(
1
);
}
processRegLines
(
reg_file
,
doSetValue
);
if
(
realname
)
{
HeapFree
(
GetProcessHeap
(),
0
,
realname
);
fclose
(
reg_file
);
}
get_file_name
(
&
s
,
filename
);
}
break
;
...
...
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