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
3e19c4ca
Commit
3e19c4ca
authored
Apr 16, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
Apr 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Explicitly use ANSI functions in regedit helper functions.
parent
87bd8ef6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
regedit.c
programs/regedit/regedit.c
+8
-8
regproc.c
programs/regedit/regproc.c
+2
-2
No files found.
programs/regedit/regedit.c
View file @
3e19c4ca
...
@@ -141,29 +141,29 @@ static BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
...
@@ -141,29 +141,29 @@ static BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
if
(
strcmp
(
filename
,
"-"
)
==
0
)
if
(
strcmp
(
filename
,
"-"
)
==
0
)
{
{
reg_file
=
stdin
;
reg_file
=
stdin
;
}
}
else
else
{
{
int
size
;
int
size
;
size
=
SearchPath
(
NULL
,
filename
,
NULL
,
0
,
NULL
,
NULL
);
size
=
SearchPathA
(
NULL
,
filename
,
NULL
,
0
,
NULL
,
NULL
);
if
(
size
>
0
)
if
(
size
>
0
)
{
{
realname
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
realname
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
size
=
SearchPath
(
NULL
,
filename
,
NULL
,
size
,
realname
,
NULL
);
size
=
SearchPathA
(
NULL
,
filename
,
NULL
,
size
,
realname
,
NULL
);
}
}
if
(
size
==
0
)
if
(
size
==
0
)
{
{
fprintf
(
stderr
,
"%s: File not found
\"
%s
\"
(%d)
\n
"
,
fprintf
(
stderr
,
"%s: File not found
\"
%s
\"
(%d)
\n
"
,
getAppName
(),
filename
,
GetLastError
());
getAppName
(),
filename
,
GetLastError
());
exit
(
1
);
exit
(
1
);
}
}
reg_file
=
fopen
(
realname
,
"r"
);
reg_file
=
fopen
(
realname
,
"r"
);
if
(
reg_file
==
NULL
)
if
(
reg_file
==
NULL
)
{
{
perror
(
""
);
perror
(
""
);
fprintf
(
stderr
,
"%s: Can't open file
\"
%s
\"\n
"
,
getAppName
(),
filename
);
fprintf
(
stderr
,
"%s: Can't open file
\"
%s
\"\n
"
,
getAppName
(),
filename
);
exit
(
1
);
exit
(
1
);
}
}
}
}
...
...
programs/regedit/regproc.c
View file @
3e19c4ca
...
@@ -890,8 +890,8 @@ static void REGPROC_print_error(void)
...
@@ -890,8 +890,8 @@ static void REGPROC_print_error(void)
int
status
;
int
status
;
error_code
=
GetLastError
();
error_code
=
GetLastError
();
status
=
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
,
status
=
FormatMessage
A
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
error_code
,
0
,
(
LPT
STR
)
&
lpMsgBuf
,
0
,
NULL
);
NULL
,
error_code
,
0
,
(
LP
STR
)
&
lpMsgBuf
,
0
,
NULL
);
if
(
!
status
)
{
if
(
!
status
)
{
fprintf
(
stderr
,
"%s: Cannot display message for error %d, status %d
\n
"
,
fprintf
(
stderr
,
"%s: Cannot display message for error %d, status %d
\n
"
,
getAppName
(),
error_code
,
GetLastError
());
getAppName
(),
error_code
,
GetLastError
());
...
...
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