quartz: Make errors.h more complete and better match the PSDK types.

Francois Gouget fgouget at free.fr
Fri Aug 31 19:45:13 CDT 2007


---
 include/errors.h |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/include/errors.h b/include/errors.h
index eed221f..c8c3067 100644
--- a/include/errors.h
+++ b/include/errors.h
@@ -23,14 +23,19 @@
 extern "C" {
 #endif
 
+#define AMOVIEAPI
+
 #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);
+typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT,char*,DWORD);
+typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT,WCHAR*,DWORD);
+DECL_WINELIB_TYPE_AW(AMGETERRORTEXTPROC)
 
+DWORD WINAPI AMGetErrorTextA(HRESULT,LPSTR,DWORD);
+DWORD WINAPI AMGetErrorTextW(HRESULT,LPWSTR,DWORD);
 #define AMGetErrorText WINELIB_NAME_AW(AMGetErrorText)
 
 #ifdef __cplusplus
-- 
1.5.2.4




More information about the wine-patches mailing list