On Tue, Dec 14, 2010 at 11:14:13PM +0100, Erik Faye-Lund wrote: > On Tue, Dec 14, 2010 at 11:11 PM, Heiko Voigt <hvoigt@xxxxxxxxxx> wrote: > > +static inline int is_file_in_use_error(DWORD errcode) > > +{ > > + switch(GetLastError()) { > > Why pass the error code in, just to ignore it? Shouldn't this switch > on "errcode" instead? Definitely. Thanks for spotting that. Cheers Heiko -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html