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
1f35ff59
Commit
1f35ff59
authored
May 20, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
May 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add stub implementation for AMGetErrorText{A,W}.
parent
7b861b3c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
3 deletions
+74
-3
main.c
dlls/quartz/main.c
+30
-0
quartz.spec
dlls/quartz/quartz.spec
+2
-2
Makefile.in
include/Makefile.in
+1
-0
dshow.h
include/dshow.h
+1
-1
errors.h
include/errors.h
+40
-0
No files found.
dlls/quartz/main.c
View file @
1f35ff59
...
@@ -268,3 +268,33 @@ LONG WINAPI DBToAmpFactor(LONG db)
...
@@ -268,3 +268,33 @@ LONG WINAPI DBToAmpFactor(LONG db)
return
0
;
return
0
;
return
100
;
return
100
;
}
}
DWORD
WINAPI
AMGetErrorTextA
(
HRESULT
hr
,
char
*
buffer
,
DWORD
maxlen
)
{
int
len
;
static
const
char
format
[]
=
"Error: 0x%lx"
;
char
error
[
MAX_ERROR_TEXT_LEN
];
FIXME
(
"(%lx,%p,%ld) stub
\n
"
,
hr
,
buffer
,
maxlen
);
if
(
!
buffer
)
return
0
;
wsprintfA
(
error
,
format
,
hr
);
if
((
len
=
lstrlenA
(
error
))
>=
maxlen
)
return
0
;
lstrcpyA
(
buffer
,
error
);
return
len
;
}
DWORD
WINAPI
AMGetErrorTextW
(
HRESULT
hr
,
WCHAR
*
buffer
,
DWORD
maxlen
)
{
int
len
;
static
const
WCHAR
format
[]
=
{
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
':'
,
' '
,
'0'
,
'x'
,
'%'
,
'l'
,
'x'
,
0
};
WCHAR
error
[
MAX_ERROR_TEXT_LEN
];
FIXME
(
"(%lx,%p,%ld) stub
\n
"
,
hr
,
buffer
,
maxlen
);
if
(
!
buffer
)
return
0
;
wsprintfW
(
error
,
format
,
hr
);
if
((
len
=
lstrlenW
(
error
))
>=
maxlen
)
return
0
;
lstrcpyW
(
buffer
,
error
);
return
len
;
}
dlls/quartz/quartz.spec
View file @
1f35ff59
@ st
ub AMGetErrorTextA
@ st
dcall AMGetErrorTextA(long ptr long)
@ st
ub AMGetErrorTextW
@ st
dcall AMGetErrorTextW(long ptr long)
@ stdcall AmpFactorToDB(long)
@ stdcall AmpFactorToDB(long)
@ stdcall DBToAmpFactor(long)
@ stdcall DBToAmpFactor(long)
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllCanUnloadNow()
...
...
include/Makefile.in
View file @
1f35ff59
...
@@ -131,6 +131,7 @@ WINDOWS_INCLUDES = \
...
@@ -131,6 +131,7 @@ WINDOWS_INCLUDES = \
dxerr8.h
\
dxerr8.h
\
dxerr9.h
\
dxerr9.h
\
dxfile.h
\
dxfile.h
\
errors.h
\
evcode.h
\
evcode.h
\
evntrace.h
\
evntrace.h
\
excpt.h
\
excpt.h
\
...
...
include/dshow.h
View file @
1f35ff59
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
#include <control.h>
#include <control.h>
/*#include <evcode.h>*/
/*#include <evcode.h>*/
#include <uuids.h>
#include <uuids.h>
/*#include <errors.h>*/
#include <errors.h>
#include <audevcod.h>
#include <audevcod.h>
#ifndef OATRUE
#ifndef OATRUE
...
...
include/errors.h
0 → 100644
View file @
1f35ff59
/*
* Copyright (C) 2006 Hans Leidekker
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ERRORS__
#define __ERRORS__
#ifdef __cplusplus
extern
"C"
{
#endif
#define VFW_FIRST_CODE 0x200
#define MAX_ERROR_TEXT_LEN 160
#include <vfwmsgs.h>
DWORD
WINAPI
AMGetErrorTextA
(
HRESULT
hr
,
char
*
buffer
,
DWORD
maxlen
);
DWORD
WINAPI
AMGetErrorTextW
(
HRESULT
hr
,
WCHAR
*
buffer
,
DWORD
maxlen
);
#define AMGetErrorText WINELIB_NAME_AW(AMGetErrorText)
#ifdef __cplusplus
}
#endif
#endif
/* __ERRORS__ */
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