oleaut32 declarations
Martin Fuchs
martin-fuchs at gmx.net
Sun Feb 29 05:04:25 CST 2004
Changelog:
correct return type of SysStringLen() and SysStringByteLen()
Index: oleauto.h
===================================================================
RCS file: /home/wine/wine/include/oleauto.h,v
retrieving revision 1.55
diff -u -p -d -r1.55 oleauto.h
--- oleauto.h 18 Nov 2003 20:41:24 -0000 1.55
+++ oleauto.h 29 Feb 2004 11:03:20 -0000
@@ -44,8 +44,8 @@ BSTR WINAPI SysAllocStringLen(const OLEC
void WINAPI SysFreeString(BSTR);
INT WINAPI SysReAllocString(LPBSTR,const OLECHAR*);
int WINAPI SysReAllocStringLen(BSTR*,const OLECHAR*,UINT);
-int WINAPI SysStringByteLen(BSTR);
-int WINAPI SysStringLen(BSTR);
+UINT WINAPI SysStringByteLen(BSTR);
+UINT WINAPI SysStringLen(BSTR);
/* IErrorInfo helpers */
HRESULT WINAPI SetErrorInfo(ULONG,IErrorInfo*);
Index: oleaut.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/oleaut.c,v
retrieving revision 1.38
diff -u -p -d -r1.38 oleaut.c
--- oleaut.c 6 Jan 2004 22:08:34 -0000 1.38
+++ oleaut.c 29 Feb 2004 11:03:28 -0000
@@ -91,7 +91,7 @@ HMODULE OLEAUT32_hModule = NULL;
* calculated by lstrlenW(), since it returns the length that was used to
* allocate the string by SysAllocStringLen().
*/
-int WINAPI SysStringLen(BSTR str)
+UINT WINAPI SysStringLen(BSTR str)
{
DWORD* bufferPointer;
@@ -121,7 +121,7 @@ int WINAPI SysStringLen(BSTR str)
* NOTES
* See SysStringLen(), BSTR().
*/
-int WINAPI SysStringByteLen(BSTR str)
+UINT WINAPI SysStringByteLen(BSTR str)
{
DWORD* bufferPointer;
More information about the wine-patches
mailing list