On 11/12/06, <b class="gmail_sendername">Paul Vriens</b> &lt;<a href="mailto:paul.vriens.wine@gmail.com">paul.vriens.wine@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>hResource16 is not used.<br><br>Will fix Coverity-17.<br><br>Changelog<br>&nbsp;&nbsp;Remove unused variable<br><br>Cheers,<br><br>Paul.<br>---<br> dlls/comdlg32/fontdlg16.c |&nbsp;&nbsp;&nbsp;&nbsp;3 +--<br> 1 files changed, 1 insertions(+), 2 deletions(-)
<br><br>diff --git a/dlls/comdlg32/fontdlg16.c b/dlls/comdlg32/fontdlg16.c<br>index 4b13c2d..c5f11df 100644<br>--- a/dlls/comdlg32/fontdlg16.c<br>+++ b/dlls/comdlg32/fontdlg16.c<br>@@ -164,7 +164,7 @@ INT16 WINAPI FontStyleEnumProc16( SEGPTR
<br> BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16 lpChFont)<br> {<br>&nbsp;&nbsp;&nbsp;&nbsp; HINSTANCE16 hInst;<br>-&nbsp;&nbsp;&nbsp;&nbsp;HANDLE16 hDlgTmpl16 = 0, hResource16 = 0;<br>+&nbsp;&nbsp;&nbsp;&nbsp;HANDLE16 hDlgTmpl16 = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp; HGLOBAL16 hGlobal16 = 0;<br>&nbsp;&nbsp;&nbsp;&nbsp; BOOL16 bRet = FALSE;
<br>&nbsp;&nbsp;&nbsp;&nbsp; LPVOID template;<br>@@ -255,7 +255,6 @@ BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT1<br>&nbsp;&nbsp;&nbsp;&nbsp; hInst = GetWindowLongPtrA(HWND_32(lpChFont-&gt;hwndOwner), GWLP_HINSTANCE);<br>&nbsp;&nbsp;&nbsp;&nbsp; bRet = DialogBoxIndirectParam16(hInst, hDlgTmpl16, lpChFont-&gt;hwndOwner,
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(DLGPROC16) ptr, (DWORD)lpChFont);<br>-&nbsp;&nbsp;&nbsp;&nbsp;if (hResource16) FreeResource16(hDlgTmpl16);<br>&nbsp;&nbsp;&nbsp;&nbsp; if (hGlobal16)<br>&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GlobalUnlock16(hGlobal16);<br>--<br><a href="http://1.4.3.5">1.4.3.5
</a></blockquote><div><br>Forget this one as I'm not sure whether hDlgTmpl16 needs to be freed.<br><br>Cheers,<br><br>Paul.<br></div><br></div><br>