Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a33d7fc8
Commit
a33d7fc8
authored
Jul 29, 2008
by
Colin Finck
Committed by
Alexandre Julliard
Jul 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some hackish usages of WideCharToMultiByte.
parent
1e7f8919
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
fontdlg.c
dlls/comdlg32/fontdlg.c
+1
-1
urlcache.c
dlls/wininet/urlcache.c
+1
-1
theme.c
programs/winecfg/theme.c
+2
-2
No files found.
dlls/comdlg32/fontdlg.c
View file @
a33d7fc8
...
...
@@ -1072,7 +1072,7 @@ static LRESULT CFn_WMDestroy(HWND hwnd, WPARAM wParam, LPARAM lParam, LPCHOOSEFO
LF_FACESIZE
,
lpcfa
->
lpLogFont
->
lfFaceName
,
LF_FACESIZE
,
0
,
0
);
if
((
lpcfw
->
Flags
&
CF_USESTYLE
)
&&
lpcfw
->
lpszStyle
)
{
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpcfw
->
lpszStyle
,
-
1
,
NULL
,
-
1
,
0
,
0
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpcfw
->
lpszStyle
,
-
1
,
NULL
,
0
,
0
,
0
);
WideCharToMultiByte
(
CP_ACP
,
0
,
lpcfw
->
lpszStyle
,
-
1
,
lpcfa
->
lpszStyle
,
len
,
0
,
0
);
HeapFree
(
GetProcessHeap
(),
0
,
lpcfw
->
lpszStyle
);
}
...
...
dlls/wininet/urlcache.c
View file @
a33d7fc8
...
...
@@ -2339,7 +2339,7 @@ static BOOL WINAPI CommitUrlCacheEntryInternal(
/* skip container path prefix */
lpszLocalFileName
+=
lstrlenW
(
pContainer
->
path
);
WideCharToMultiByte
(
CP_ACP
,
0
,
lpszLocalFileName
,
-
1
,
achFile
,
-
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
lpszLocalFileName
,
-
1
,
achFile
,
MAX_PATH
,
NULL
,
NULL
);
pchLocalFileName
=
achFile
;
for
(
cDirectory
=
0
;
cDirectory
<
pHeader
->
DirectoryCount
;
cDirectory
++
)
...
...
programs/winecfg/theme.c
View file @
a33d7fc8
...
...
@@ -554,7 +554,7 @@ static void set_color_from_theme(WCHAR *keyName, COLORREF color)
keyNameSize
=
WideCharToMultiByte
(
CP_ACP
,
0
,
keyName
,
-
1
,
keyNameA
,
0
,
NULL
,
NULL
);
keyNameA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
keyNameSize
);
WideCharToMultiByte
(
CP_ACP
,
0
,
keyName
,
-
1
,
keyNameA
,
-
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
keyName
,
-
1
,
keyNameA
,
keyNameSize
,
NULL
,
NULL
);
for
(
i
=
0
;
i
<
sizeof
(
metrics
)
/
sizeof
(
metrics
[
0
]);
i
++
)
{
...
...
@@ -593,7 +593,7 @@ static void do_parse_theme(WCHAR *file)
keyNameValueSize
=
WideCharToMultiByte
(
CP_ACP
,
0
,
keyNameValue
,
-
1
,
keyNameValueA
,
0
,
NULL
,
NULL
);
keyNameValueA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
keyNameValueSize
);
WideCharToMultiByte
(
CP_ACP
,
0
,
keyNameValue
,
-
1
,
keyNameValueA
,
-
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
keyNameValue
,
-
1
,
keyNameValueA
,
keyNameValueSize
,
NULL
,
NULL
);
WINE_TRACE
(
"parsing key: %s with value: %s
\n
"
,
wine_dbgstr_w
(
keyNamePtr
),
wine_dbgstr_w
(
keyNameValue
));
...
...
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