mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
Sync to Wine-0_9_4:
Eric Pouech <[email protected]> - Const correctness fixes. - Removed some dead-code. svn path=/trunk/; revision=20346
This commit is contained in:
@@ -385,7 +385,7 @@ static HWND COMDLG32_FR_DoFindReplace(
|
||||
hmod = (HMODULE)pdata->fr.hInstance;
|
||||
if(pdata->fr.Flags & FR_WINE_UNICODE)
|
||||
{
|
||||
htemplate = FindResourceW(hmod, (LPWSTR)pdata->fr.lpTemplateName, (LPWSTR)RT_DIALOG);
|
||||
htemplate = FindResourceW(hmod, (LPCWSTR)pdata->fr.lpTemplateName, (LPWSTR)RT_DIALOG);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1076,7 +1076,6 @@ LRESULT CFn_WMPaint(HWND hDlg, WPARAM wParam, LPARAM lParam, LPCHOOSEFONTW lpcf)
|
||||
HDC hdc;
|
||||
HPEN hOrigPen;
|
||||
HFONT hOrigFont;
|
||||
COLORREF rgbPrev;
|
||||
LOGFONTW lf = *(lpcf->lpLogFont);
|
||||
|
||||
MapWindowPoints( 0, hDlg, (LPPOINT) &info.rcWindow, 2);
|
||||
@@ -1104,7 +1103,7 @@ LRESULT CFn_WMPaint(HWND hDlg, WPARAM wParam, LPARAM lParam, LPCHOOSEFONTW lpcf)
|
||||
info.rcWindow.top++;
|
||||
info.rcWindow.left++;
|
||||
hOrigFont = SelectObject( hdc, CreateFontIndirectW( &lf ) );
|
||||
rgbPrev=SetTextColor( hdc, lpcf->rgbColors );
|
||||
SetTextColor( hdc, lpcf->rgbColors );
|
||||
|
||||
DrawTextW( hdc,
|
||||
sample_lang_text[CHARSET_ORDER[lpcf->lpLogFont->lfCharSet]],
|
||||
|
||||
Reference in New Issue
Block a user