_wfullpath declaratation type fix
Pierre d'Herbemont
stegefin at free.fr
Tue Oct 28 08:00:57 CST 2003
Hi!
In dlls/msvcrt/dir.c the implementation of _wfullpath is declared as:
- MSVCRT_wchar_t *_wfullpath(MSVCRT_wchar_t * absPath, const
MSVCRT_wchar_t* relPath, unsigned int size)
whereas in include/msvcrt/stdlib _wfullpath is declared as:
- MSVCRT(wchar_t)*_wfullpath(MSVCRT(wchar_t)*,const
MSVCRT(wchar_t)*,size_t);
The implementation should be declared as:
- MSVCRT_wchar_t *_wfullpath(MSVCRT_wchar_t * absPath, const
MSVCRT_wchar_t* relPath, size_t size)
(This modification allows Darwin's gcc3.3 to build msvcrt)
Thanks,
Pierre
ChangeLog:
- Make _wfullpath's implementation declaration matches wfullpath's
definition declaration.
-------------- next part --------------
? .DS_Store
Index: dir.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/dir.c,v
retrieving revision 1.23
diff -u -r1.23 dir.c
--- dir.c 21 Oct 2003 23:51:06 -0000 1.23
+++ dir.c 28 Oct 2003 13:49:16 -0000
@@ -587,7 +587,7 @@
/*********************************************************************
* _wfullpath (MSVCRT.@)
*/
-MSVCRT_wchar_t *_wfullpath(MSVCRT_wchar_t * absPath, const MSVCRT_wchar_t* relPath, unsigned int size)
+MSVCRT_wchar_t *_wfullpath(MSVCRT_wchar_t * absPath, const MSVCRT_wchar_t* relPath, size_t size)
{
MSVCRT_wchar_t drive[5],dir[MAX_PATH],file[MAX_PATH],ext[MAX_PATH];
MSVCRT_wchar_t res[MAX_PATH];
-------------- next part --------------
More information about the wine-patches
mailing list