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
883ca4d9
Commit
883ca4d9
authored
Dec 03, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Implement AMGetErrorTextA on top of AMGetErrorTextW.
parent
89161a8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
main.c
dlls/quartz/main.c
+7
-9
No files found.
dlls/quartz/main.c
View file @
883ca4d9
...
...
@@ -297,17 +297,15 @@ LONG WINAPI DBToAmpFactor(LONG db)
*/
DWORD
WINAPI
AMGetErrorTextA
(
HRESULT
hr
,
LPSTR
buffer
,
DWORD
maxlen
)
{
unsigned
int
len
;
static
const
char
format
[]
=
"Error: 0x%x"
;
char
error
[
MAX_ERROR_TEXT_LEN
];
DWORD
res
;
WCHAR
errorW
[
MAX_ERROR_TEXT_LEN
];
FIXME
(
"(%x,%p,%d) stub
\n
"
,
hr
,
buffer
,
maxlen
);
TRACE
(
"(%x,%p,%d)
\n
"
,
hr
,
buffer
,
maxlen
);
if
(
!
buffer
)
return
0
;
if
(
!
buffer
)
return
0
;
wsprintfA
(
error
,
format
,
hr
);
if
((
len
=
strlen
(
error
))
>=
maxlen
)
return
0
;
lstrcpyA
(
buffer
,
error
);
return
len
;
res
=
AMGetErrorTextW
(
hr
,
errorW
,
sizeof
(
errorW
)
/
sizeof
(
*
errorW
));
return
WideCharToMultiByte
(
CP_ACP
,
0
,
errorW
,
res
,
buffer
,
maxlen
,
0
,
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