[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: re: wininet [2/2]: Fix error checking for FtpGetCurrentDirectoryW
From: "Dan Kegel" <dank () kegel ! com>
Date: 2007-11-29 13:56:18
Message-ID: a71bd89a0711290556x4927b4ddu602eea42610fd4cc () mail ! gmail ! com
[Download RAW message or body]
Hi Zac,
you wrote
* Fixed errors in error checking in FtpGetCurrentDirectoryW in wininet/ftp.c
It's probably a good idea to explain what real-world
problem this fixes. One good way to do that is to
submit a test first that fails, with todo(wine) around
the failing part, and then submit a second patch which
fixes the problem and removes the todo(wine) from the test.
- if (NULL == lpwfs || WH_HFTPSESSION != lpwfs->hdr.htype)
+ if ( lpwfs == NULL || WH_HFTPSESSION != lpwfs->hdr.htype )
Why did you make this change? It doesn't fix anything,
and it removes an old coder's anti-typo-measure of putting
the const on the left hand of an equality test. Please remove
this hunk.
- if (lpwfs->download_in_progress != NULL)
+ if ( lpszCurrentDirectory == NULL || *lpdwCurrentDirectory == NULL )
You switched to tabs, tsk. Also, you changed whitespace
style. Always try to match the file's existing style.
- Dan
--
Wine for Windows ISVs: http://kegel.com/wine/isv
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic