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
12efa613
Commit
12efa613
authored
Apr 18, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Apr 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Rename the load_message helper to reflect its sole handling of Unicode strings.
parent
43436f64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
format_msg.c
dlls/kernel32/format_msg.c
+6
-7
No files found.
dlls/kernel32/format_msg.c
View file @
12efa613
...
...
@@ -72,9 +72,9 @@ static const WCHAR PCNTFMTWSTR[] = { '%','%','%','s',0 };
static
const
WCHAR
FMTWSTR
[]
=
{
'%'
,
's'
,
0
};
/**********************************************************************
* load_message
W
(internal)
* load_message
(internal)
*/
static
LPWSTR
load_message
W
(
HMODULE
module
,
UINT
id
,
WORD
lang
)
static
LPWSTR
load_message
(
HMODULE
module
,
UINT
id
,
WORD
lang
)
{
const
MESSAGE_RESOURCE_ENTRY
*
mre
;
WCHAR
*
buffer
;
...
...
@@ -426,9 +426,9 @@ DWORD WINAPI FormatMessageA(
}
else
{
if
(
dwFlags
&
FORMAT_MESSAGE_FROM_HMODULE
)
from
=
load_message
W
(
(
HMODULE
)
lpSource
,
dwMessageId
,
dwLanguageId
);
from
=
load_message
(
(
HMODULE
)
lpSource
,
dwMessageId
,
dwLanguageId
);
if
(
!
from
&&
(
dwFlags
&
FORMAT_MESSAGE_FROM_SYSTEM
))
from
=
load_message
W
(
kernel32_handle
,
dwMessageId
,
dwLanguageId
);
from
=
load_message
(
kernel32_handle
,
dwMessageId
,
dwLanguageId
);
if
(
!
from
)
return
0
;
}
...
...
@@ -514,11 +514,10 @@ DWORD WINAPI FormatMessageW(
strcpyW
(
from
,
lpSource
);
}
else
{
from
=
NULL
;
if
(
dwFlags
&
FORMAT_MESSAGE_FROM_HMODULE
)
from
=
load_message
W
(
(
HMODULE
)
lpSource
,
dwMessageId
,
dwLanguageId
);
from
=
load_message
(
(
HMODULE
)
lpSource
,
dwMessageId
,
dwLanguageId
);
if
(
!
from
&&
(
dwFlags
&
FORMAT_MESSAGE_FROM_SYSTEM
))
from
=
load_message
W
(
kernel32_handle
,
dwMessageId
,
dwLanguageId
);
from
=
load_message
(
kernel32_handle
,
dwMessageId
,
dwLanguageId
);
if
(
!
from
)
return
0
;
}
...
...
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