[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    RE: gdi32: Remove unneeded check. (Coverity)
From:       EA Durbin <ead1234 () hotmail ! com>
Date:       2009-01-31 4:53:21
Message-ID: COL113-W5E46AB32E82DD956398F1ABC70 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> From: kai.blin@gmail.com
> To: robertshearman@gmail.com
> Subject: Re: gdi32: Remove unneeded check. (Coverity)
> Date: Wed, 28 Jan 2009 10:32:40 +0100
> CC: wine-devel@winehq.org
> 
> On Tuesday 27 January 2009 18:29:10 Rob Shearman wrote:
> 
> > It doesn't make much sense to leave the lcdfilter variable in the
> > function if you're going to remove the if condition depending on it,
> > since it only has one other use.
> > However, It might have been the intention of the author of this code
> > that this is setting to be changed at compile time (or runtime through
> > a registry tweak) and have the code do the appropriate thing - in that
> > case it would have been better to put the variable at the top of the
> > file.
> 
> I actually have no idea. This was the smallest possible fix that addressed the 
> coverity issue, but I agree that we need to do something with the lcdfilter 
> variable.
> 
> Looking at the commits responsible for the lcdfilter assignment (028617b9) and 
> the if check (45a081f1), I don't see anything that hints at why there's an if 
> check with lcdfilter hardcoded. CCing the original author.
> 
> Cheers,
> Kai
> 
> -- 
> Kai Blin
> WorldForge developer  http://www.worldforge.org/
> Wine developer        http://wiki.winehq.org/KaiBlin
> Samba team member     http://www.samba.org/samba/team/
> --
> Will code for cotton.

_________________________________________________________________
HotmailŪ goes where you go. On a PC, on the Web, on your phone. 
http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?ocid=TXT_TAGHM_WL_HM_versatility_121208 \



[Attachment #5 (text/html)]

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br>&gt; From: kai.blin@gmail.com<br>&gt; To: robertshearman@gmail.com<br>&gt; \
Subject: Re: gdi32: Remove unneeded check. (Coverity)<br>&gt; Date: Wed, 28 Jan 2009 \
10:32:40 +0100<br>&gt; CC: wine-devel@winehq.org<br>&gt; <br>&gt; On Tuesday 27 \
January 2009 18:29:10 Rob Shearman wrote:<br>&gt; <br>&gt; &gt; It doesn't make much \
sense to leave the lcdfilter variable in the<br>&gt; &gt; function if you're going to \
remove the if condition depending on it,<br>&gt; &gt; since it only has one other \
use.<br>&gt; &gt; However, It might have been the intention of the author of this \
code<br>&gt; &gt; that this is setting to be changed at compile time (or runtime \
through<br>&gt; &gt; a registry tweak) and have the code do the appropriate thing - \
in that<br>&gt; &gt; case it would have been better to put the variable at the top of \
the<br>&gt; &gt; file.<br>&gt; <br>&gt; I actually have no idea. This was the \
smallest possible fix that addressed the <br>&gt; coverity issue, but I agree that we \
need to do something with the lcdfilter <br>&gt; variable.<br>&gt; <br>&gt; Looking \
at the commits responsible for the lcdfilter assignment (028617b9) and <br>&gt; the \
if check (45a081f1), I don't see anything that hints at why there's an if <br>&gt; \
check with lcdfilter hardcoded. CCing the original author.<br>&gt; <br>&gt; \
Cheers,<br>&gt; Kai<br>&gt; <br>&gt; -- <br>&gt; Kai Blin<br>&gt; WorldForge \
developer  http://www.worldforge.org/<br>&gt; Wine developer        \
http://wiki.winehq.org/KaiBlin<br>&gt; Samba team member     \
http://www.samba.org/samba/team/<br>&gt; --<br>&gt; Will code for cotton.<br><br \
/><hr />HotmailŪ goes where you go. On a PC, on the Web, on your phone.  <a \
href='http://www.windowslive-hotmail.com/learnmore/versatility.aspx#mobile?ocid=TXT_TAGHM_WL_HM_versatility_121208 \
' target='_new'>See how.</a></body> </html>





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic