mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 21:43:39 +00:00
comdlg32: Cast-qual warning fix.
This commit is contained in:
parent
382329c103
commit
234b0d8c1e
|
@ -76,10 +76,12 @@ static void CFn_CHOOSEFONT16to32W(const CHOOSEFONT16 *chf16, LPCHOOSEFONTW chf32
|
|||
int len;
|
||||
if (chf16->Flags & CF_ENABLETEMPLATE)
|
||||
{
|
||||
LPWSTR name32w;
|
||||
|
||||
len = MultiByteToWideChar( CP_ACP, 0, MapSL(chf16->lpTemplateName), -1, NULL, 0);
|
||||
chf32w->lpTemplateName = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||
MultiByteToWideChar( CP_ACP, 0, MapSL(chf16->lpTemplateName),
|
||||
-1, (LPWSTR)chf32w->lpTemplateName, len);
|
||||
name32w = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||
MultiByteToWideChar( CP_ACP, 0, MapSL(chf16->lpTemplateName), -1, name32w, len);
|
||||
chf32w->lpTemplateName = name32w;
|
||||
}
|
||||
if (chf16->Flags & CF_USESTYLE)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue