Hans Leidekker : wininet: Avoid a crash with traces on.

Alexandre Julliard julliard at winehq.org
Tue Mar 25 06:58:02 CDT 2008


Module: wine
Branch: master
Commit: 26b38dc50336edb1d251f130323a037857eaac1b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=26b38dc50336edb1d251f130323a037857eaac1b

Author: Hans Leidekker <hans at it.vu.nl>
Date:   Mon Mar 24 21:32:36 2008 +0100

wininet: Avoid a crash with traces on.

---

 dlls/wininet/ftp.c       |    4 +---
 dlls/wininet/tests/ftp.c |    1 -
 2 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 76ddbfd..4077de3 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -937,7 +937,7 @@ BOOL WINAPI FtpGetCurrentDirectoryW(HINTERNET hFtpSession, LPWSTR lpszCurrentDir
     LPWININETAPPINFOW hIC = NULL;
     BOOL r = FALSE;
 
-    TRACE("len(%d)\n", *lpdwCurrentDirectory);
+    TRACE("%p %p %p\n", hFtpSession, lpszCurrentDirectory, lpdwCurrentDirectory);
 
     lpwfs = (LPWININETFTPSESSIONW) WININET_GetObject( hFtpSession );
     if (NULL == lpwfs)
@@ -1015,8 +1015,6 @@ static BOOL FTP_FtpGetCurrentDirectoryW(LPWININETFTPSESSIONW lpwfs, LPWSTR lpszC
     LPWININETAPPINFOW hIC = NULL;
     DWORD bSuccess = FALSE;
 
-    TRACE("len(%d)\n", *lpdwCurrentDirectory);
-
     /* Clear any error information */
     INTERNET_SetLastError(0);
 
diff --git a/dlls/wininet/tests/ftp.c b/dlls/wininet/tests/ftp.c
index 9832fce..992bce9 100644
--- a/dlls/wininet/tests/ftp.c
+++ b/dlls/wininet/tests/ftp.c
@@ -26,7 +26,6 @@
  *     Add W-function tests.
  *     Add missing function tests:
  *         FtpFindFirstFile
- *         FtpGetCurrentDirectory
  *         FtpGetFileSize
  *         FtpSetCurrentDirectory
  */




More information about the wine-cvs mailing list