comdlg32: Remove unneeded casts (Resend)
Andrew Talbot
andrew.talbot at talbotville.com
Wed Jan 2 17:10:51 CST 2008
Changelog:
comdlg32: Remove unneeded casts.
diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index 3e9c692..cf41b9b 100644
--- a/dlls/comdlg32/filedlg.c
+++ b/dlls/comdlg32/filedlg.c
@@ -2237,7 +2237,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
if (fodInfos->ofnInfos->Flags & OFN_ALLOWMULTISELECT)
size += 1;
/* return needed size in first two bytes of lpstrFile */
- *(WORD *)fodInfos->ofnInfos->lpstrFile = size;
+ *fodInfos->ofnInfos->lpstrFile = size;
FILEDLG95_Clean(hwnd);
ret = EndDialog(hwnd, FALSE);
COMDLG32_SetCommDlgExtendedError(FNERR_BUFFERTOOSMALL);
diff --git a/dlls/comdlg32/finddlg32.c b/dlls/comdlg32/finddlg32.c
index 5485804..5d247d4 100644
--- a/dlls/comdlg32/finddlg32.c
+++ b/dlls/comdlg32/finddlg32.c
@@ -382,7 +382,7 @@ static HWND COMDLG32_FR_DoFindReplace(
HRSRC htemplate;
if(pdata->fr.Flags & FR_ENABLETEMPLATE)
{
- hmod = (HMODULE)pdata->fr.hInstance;
+ hmod = pdata->fr.hInstance;
if(pdata->fr.Flags & FR_WINE_UNICODE)
{
htemplate = FindResourceW(hmod, (LPCWSTR)pdata->fr.lpTemplateName, (LPWSTR)RT_DIALOG);
diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index 6b8ed15..79a5509 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -763,7 +763,7 @@ static BOOL PRINTDLG_SetUpPaperComboBoxW(HWND hDlg,
NrOfEntries = DeviceCapabilitiesW(PrinterName, PortName,
fwCapability_Names, Names, dm);
NrOfEntries = DeviceCapabilitiesW(PrinterName, PortName,
- fwCapability_Words, (LPWSTR)Words, dm);
+ fwCapability_Words, Words, dm);
/* reset any current content in the combobox */
SendDlgItemMessageW(hDlg, nIDComboBox, CB_RESETCONTENT, 0, 0);
More information about the wine-patches
mailing list