[SHELL32] Add missing format specifier, switch parameters as advertised

svn path=/trunk/; revision=46781
This commit is contained in:
Gregor Schneider 2010-04-08 21:25:02 +00:00
parent 0d672ad7cd
commit d20419ee58

View file

@ -114,7 +114,7 @@ SH_FileGeneralSetFileType(HWND hwndDlg, WCHAR *filext)
{
/* the file extension is unknown, so default to string "FileExtension File" */
SendMessageW(hDlgCtrl, WM_GETTEXT, (WPARAM)MAX_PATH, (LPARAM)value);
swprintf(name, value, &filext[1]);
swprintf(name, L"%s %s", &filext[1], value);
SendMessageW(hDlgCtrl, WM_SETTEXT, (WPARAM)NULL, (LPARAM)name);
return TRUE;
}