regedit: Explicitly use ANSI functions in regedit helper functions.
This commit is contained in:
parent
87bd8ef6e1
commit
3e19c4ca3b
@ -147,11 +147,11 @@ static BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
|
|||||||
{
|
{
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
@ -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 = FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
||||||
NULL, error_code, 0, (LPTSTR) &lpMsgBuf, 0, NULL);
|
NULL, error_code, 0, (LPSTR) &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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user