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
d8fd4bde
Commit
d8fd4bde
authored
Aug 29, 2016
by
Hugh McMaster
Committed by
Alexandre Julliard
Aug 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Process registry input from stdin.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
37f159e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
regedit.c
programs/regedit/regedit.c
+7
-7
No files found.
programs/regedit/regedit.c
View file @
d8fd4bde
...
@@ -93,6 +93,7 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
...
@@ -93,6 +93,7 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
case
ACTION_ADD
:
{
case
ACTION_ADD
:
{
WCHAR
*
filename
=
argv
[
*
i
];
WCHAR
*
filename
=
argv
[
*
i
];
WCHAR
hyphen
[]
=
{
'-'
,
0
};
WCHAR
hyphen
[]
=
{
'-'
,
0
};
WCHAR
*
realname
=
NULL
;
FILE
*
reg_file
;
FILE
*
reg_file
;
if
(
!
strcmpW
(
filename
,
hyphen
))
if
(
!
strcmpW
(
filename
,
hyphen
))
...
@@ -100,7 +101,6 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
...
@@ -100,7 +101,6 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
else
else
{
{
int
size
;
int
size
;
WCHAR
*
realname
=
NULL
;
WCHAR
rb_mode
[]
=
{
'r'
,
'b'
,
0
};
WCHAR
rb_mode
[]
=
{
'r'
,
'b'
,
0
};
size
=
SearchPathW
(
NULL
,
filename
,
NULL
,
0
,
NULL
,
NULL
);
size
=
SearchPathW
(
NULL
,
filename
,
NULL
,
0
,
NULL
,
NULL
);
...
@@ -124,12 +124,12 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
...
@@ -124,12 +124,12 @@ static void PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
HeapFree
(
GetProcessHeap
(),
0
,
realname
);
HeapFree
(
GetProcessHeap
(),
0
,
realname
);
return
;
return
;
}
}
import_registry_file
(
reg_file
);
}
if
(
realname
)
import_registry_file
(
reg_file
);
{
if
(
realname
)
HeapFree
(
GetProcessHeap
(),
0
,
realname
);
{
fclose
(
reg_fil
e
);
HeapFree
(
GetProcessHeap
(),
0
,
realnam
e
);
}
fclose
(
reg_file
);
}
}
break
;
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