winecfg: Build the file filter by hand instead of hardcoding it in resource strings.

This commit is contained in:
Alexandre Julliard 2011-01-13 21:15:08 +01:00
parent de10568061
commit adfab558ec
26 changed files with 30 additions and 27 deletions

View File

@ -240,7 +240,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "âãðàäåíà, ñîáñòâåíà" IDS_DLL_BUILTIN_NATIVE "âãðàäåíà, ñîáñòâåíà"
IDS_DLL_DISABLED "çàáðàíåíà" IDS_DLL_DISABLED "çàáðàíåíà"
IDS_DEFAULT_SETTINGS "Default Settings" IDS_DEFAULT_SETTINGS "Default Settings"
IDS_EXECUTABLE_FILTER "Wine Programs (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine Programs (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Use global settings" IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file" IDS_SELECT_EXECUTABLE "Select an executable file"
END END

View File

@ -240,7 +240,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "vestavěná, nativní" IDS_DLL_BUILTIN_NATIVE "vestavěná, nativní"
IDS_DLL_DISABLED "zakázat" IDS_DLL_DISABLED "zakázat"
IDS_DEFAULT_SETTINGS "Standardní nastavení" IDS_DEFAULT_SETTINGS "Standardní nastavení"
IDS_EXECUTABLE_FILTER "Programy Wine (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Programy Wine (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Použít všeobecná nastavení" IDS_USE_GLOBAL_SETTINGS "Použít všeobecná nastavení"
IDS_SELECT_EXECUTABLE "Zvolte spustitelný soubor" IDS_SELECT_EXECUTABLE "Zvolte spustitelný soubor"
END END

View File

@ -247,7 +247,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "indbygget, indfødt" IDS_DLL_BUILTIN_NATIVE "indbygget, indfødt"
IDS_DLL_DISABLED "disabled" IDS_DLL_DISABLED "disabled"
IDS_DEFAULT_SETTINGS "Standard indstillinger" IDS_DEFAULT_SETTINGS "Standard indstillinger"
IDS_EXECUTABLE_FILTER "Wine programmer (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine programmer (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Brug globale indstillinger" IDS_USE_GLOBAL_SETTINGS "Brug globale indstillinger"
IDS_SELECT_EXECUTABLE "Vælg en program fil" IDS_SELECT_EXECUTABLE "Vælg en program fil"
END END

View File

@ -246,7 +246,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "Builtin, Native" IDS_DLL_BUILTIN_NATIVE "Builtin, Native"
IDS_DLL_DISABLED "ausgeschaltet" IDS_DLL_DISABLED "ausgeschaltet"
IDS_DEFAULT_SETTINGS "Standardeinstellungen" IDS_DEFAULT_SETTINGS "Standardeinstellungen"
IDS_EXECUTABLE_FILTER "Wine-Programme (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine-Programme (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Globale Einstellung benutzen" IDS_USE_GLOBAL_SETTINGS "Globale Einstellung benutzen"
IDS_SELECT_EXECUTABLE "Ausführbares Programm auswählen" IDS_SELECT_EXECUTABLE "Ausführbares Programm auswählen"
END END

View File

@ -246,7 +246,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "builtin, native" IDS_DLL_BUILTIN_NATIVE "builtin, native"
IDS_DLL_DISABLED "disabled" IDS_DLL_DISABLED "disabled"
IDS_DEFAULT_SETTINGS "Default Settings" IDS_DEFAULT_SETTINGS "Default Settings"
IDS_EXECUTABLE_FILTER "Wine Programs (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine Programs (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Use global settings" IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file" IDS_SELECT_EXECUTABLE "Select an executable file"
END END

View File

@ -245,7 +245,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "interna, nativa" IDS_DLL_BUILTIN_NATIVE "interna, nativa"
IDS_DLL_DISABLED "deshabilitada" IDS_DLL_DISABLED "deshabilitada"
IDS_DEFAULT_SETTINGS "Configuración por defecto" IDS_DEFAULT_SETTINGS "Configuración por defecto"
IDS_EXECUTABLE_FILTER "Programas Wine (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Programas Wine (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Usar la configuración global" IDS_USE_GLOBAL_SETTINGS "Usar la configuración global"
IDS_SELECT_EXECUTABLE "Seleccione un fichero ejecutable" IDS_SELECT_EXECUTABLE "Seleccione un fichero ejecutable"
END END

View File

@ -234,7 +234,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "sisäinen, natiivi" IDS_DLL_BUILTIN_NATIVE "sisäinen, natiivi"
IDS_DLL_DISABLED "ei käytössä" IDS_DLL_DISABLED "ei käytössä"
IDS_DEFAULT_SETTINGS "Default Settings" IDS_DEFAULT_SETTINGS "Default Settings"
IDS_EXECUTABLE_FILTER "Wine Programs (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine Programs (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Use global settings" IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file" IDS_SELECT_EXECUTABLE "Select an executable file"
END END

View File

@ -248,7 +248,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "intégrée, native" IDS_DLL_BUILTIN_NATIVE "intégrée, native"
IDS_DLL_DISABLED "désactivée" IDS_DLL_DISABLED "désactivée"
IDS_DEFAULT_SETTINGS "Paramètres par défaut" IDS_DEFAULT_SETTINGS "Paramètres par défaut"
IDS_EXECUTABLE_FILTER "Programmes de Wine (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Programmes de Wine (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Utiliser les paramètres globaux" IDS_USE_GLOBAL_SETTINGS "Utiliser les paramètres globaux"
IDS_SELECT_EXECUTABLE "Sélectionnez un fichier exécutable" IDS_SELECT_EXECUTABLE "Sélectionnez un fichier exécutable"
END END

View File

@ -234,7 +234,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "beépített, natív" IDS_DLL_BUILTIN_NATIVE "beépített, natív"
IDS_DLL_DISABLED "letiltva" IDS_DLL_DISABLED "letiltva"
IDS_DEFAULT_SETTINGS "Default Settings" IDS_DEFAULT_SETTINGS "Default Settings"
IDS_EXECUTABLE_FILTER "Wine Programs (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine Programs (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Use global settings" IDS_USE_GLOBAL_SETTINGS "Use global settings"
IDS_SELECT_EXECUTABLE "Select an executable file" IDS_SELECT_EXECUTABLE "Select an executable file"
END END

View File

@ -248,7 +248,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "integrata, nativa" IDS_DLL_BUILTIN_NATIVE "integrata, nativa"
IDS_DLL_DISABLED "disabilitato" IDS_DLL_DISABLED "disabilitato"
IDS_DEFAULT_SETTINGS "Impostazioni predefinite" IDS_DEFAULT_SETTINGS "Impostazioni predefinite"
IDS_EXECUTABLE_FILTER "Programmi di Wine (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Programmi di Wine (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Usa impostazioni globali" IDS_USE_GLOBAL_SETTINGS "Usa impostazioni globali"
IDS_SELECT_EXECUTABLE "Seleziona un file eseguibile" IDS_SELECT_EXECUTABLE "Seleziona un file eseguibile"
END END

View File

@ -249,7 +249,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "builtin, native" IDS_DLL_BUILTIN_NATIVE "builtin, native"
IDS_DLL_DISABLED "無効" IDS_DLL_DISABLED "無効"
IDS_DEFAULT_SETTINGS "既定の設定" IDS_DEFAULT_SETTINGS "既定の設定"
IDS_EXECUTABLE_FILTER "Wine プログラム (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine プログラム (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "全体設定を使う" IDS_USE_GLOBAL_SETTINGS "全体設定を使う"
IDS_SELECT_EXECUTABLE "実行可能ファイルを選択" IDS_SELECT_EXECUTABLE "実行可能ファイルを選択"
END END

View File

@ -250,7 +250,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "내장, 네이티브" IDS_DLL_BUILTIN_NATIVE "내장, 네이티브"
IDS_DLL_DISABLED "사용하지 않음" IDS_DLL_DISABLED "사용하지 않음"
IDS_DEFAULT_SETTINGS "기본 설정" IDS_DEFAULT_SETTINGS "기본 설정"
IDS_EXECUTABLE_FILTER "Wine 프로그램 (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine 프로그램 (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "전체 설정 사용" IDS_USE_GLOBAL_SETTINGS "전체 설정 사용"
IDS_SELECT_EXECUTABLE "실행 파일 선택" IDS_SELECT_EXECUTABLE "실행 파일 선택"
END END

View File

@ -247,7 +247,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "įtaisyta, sava" IDS_DLL_BUILTIN_NATIVE "įtaisyta, sava"
IDS_DLL_DISABLED "išjungta" IDS_DLL_DISABLED "išjungta"
IDS_DEFAULT_SETTINGS "Numatytosios nuostatos" IDS_DEFAULT_SETTINGS "Numatytosios nuostatos"
IDS_EXECUTABLE_FILTER "Wine programos (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine programos (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Naudoti globalias nuostatas" IDS_USE_GLOBAL_SETTINGS "Naudoti globalias nuostatas"
IDS_SELECT_EXECUTABLE "Pasirinkite vykdomąjį failą" IDS_SELECT_EXECUTABLE "Pasirinkite vykdomąjį failą"
END END

View File

@ -248,7 +248,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "builtin, native" IDS_DLL_BUILTIN_NATIVE "builtin, native"
IDS_DLL_DISABLED "uitgeschakeld" IDS_DLL_DISABLED "uitgeschakeld"
IDS_DEFAULT_SETTINGS "Standaardinstellingen" IDS_DEFAULT_SETTINGS "Standaardinstellingen"
IDS_EXECUTABLE_FILTER "Wine toepassingen (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine toepassingen (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Gebruik globale instellingen" IDS_USE_GLOBAL_SETTINGS "Gebruik globale instellingen"
IDS_SELECT_EXECUTABLE "Selecteer een uitvoerbaar bestand" IDS_SELECT_EXECUTABLE "Selecteer een uitvoerbaar bestand"
END END

View File

@ -247,7 +247,7 @@ END
IDS_DLL_BUILTIN_NATIVE "innebygget, innfødt" IDS_DLL_BUILTIN_NATIVE "innebygget, innfødt"
IDS_DLL_DISABLED "slått av" IDS_DLL_DISABLED "slått av"
IDS_DEFAULT_SETTINGS "Globale innstillinger" IDS_DEFAULT_SETTINGS "Globale innstillinger"
IDS_EXECUTABLE_FILTER "Wine-programmer (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine-programmer (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Bruk globale innstillinger" IDS_USE_GLOBAL_SETTINGS "Bruk globale innstillinger"
IDS_SELECT_EXECUTABLE "Velg en programfil" IDS_SELECT_EXECUTABLE "Velg en programfil"
END END

View File

@ -248,7 +248,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "wbudowana, zewnętrzna" IDS_DLL_BUILTIN_NATIVE "wbudowana, zewnętrzna"
IDS_DLL_DISABLED "wyłšczona" IDS_DLL_DISABLED "wyłšczona"
IDS_DEFAULT_SETTINGS "Ustawienia standardowe" IDS_DEFAULT_SETTINGS "Ustawienia standardowe"
IDS_EXECUTABLE_FILTER "Programy Wine (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Programy Wine (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Użyj ustawień globalnych" IDS_USE_GLOBAL_SETTINGS "Użyj ustawień globalnych"
IDS_SELECT_EXECUTABLE "Wybierz plik wykonywalny" IDS_SELECT_EXECUTABLE "Wybierz plik wykonywalny"
END END

View File

@ -501,7 +501,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "embutida, nativa" IDS_DLL_BUILTIN_NATIVE "embutida, nativa"
IDS_DLL_DISABLED "desativada" IDS_DLL_DISABLED "desativada"
IDS_DEFAULT_SETTINGS "Configurações Padrão" IDS_DEFAULT_SETTINGS "Configurações Padrão"
IDS_EXECUTABLE_FILTER "Programas Wine (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Programas Wine (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Usar configurações globais" IDS_USE_GLOBAL_SETTINGS "Usar configurações globais"
IDS_SELECT_EXECUTABLE "Selecione um arquivo executável" IDS_SELECT_EXECUTABLE "Selecione um arquivo executável"
END END

View File

@ -246,7 +246,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "builtin, native" IDS_DLL_BUILTIN_NATIVE "builtin, native"
IDS_DLL_DISABLED "dezactivat" IDS_DLL_DISABLED "dezactivat"
IDS_DEFAULT_SETTINGS "Setări implicite" IDS_DEFAULT_SETTINGS "Setări implicite"
IDS_EXECUTABLE_FILTER "Programe Wine (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Programe Wine (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Folosește setările globale" IDS_USE_GLOBAL_SETTINGS "Folosește setările globale"
IDS_SELECT_EXECUTABLE "Selectează un fișier executabil" IDS_SELECT_EXECUTABLE "Selectează un fișier executabil"
END END

View File

@ -251,7 +251,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "встроенная, сторонняя" IDS_DLL_BUILTIN_NATIVE "встроенная, сторонняя"
IDS_DLL_DISABLED "отключена" IDS_DLL_DISABLED "отключена"
IDS_DEFAULT_SETTINGS "Установки по умолчанию" IDS_DEFAULT_SETTINGS "Установки по умолчанию"
IDS_EXECUTABLE_FILTER "Программы Wine (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Программы Wine (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Использовать по умолчанию" IDS_USE_GLOBAL_SETTINGS "Использовать по умолчанию"
IDS_SELECT_EXECUTABLE "Выберите исполняемый файл" IDS_SELECT_EXECUTABLE "Выберите исполняемый файл"
END END

View File

@ -246,7 +246,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "vgrajeno, izvorno" IDS_DLL_BUILTIN_NATIVE "vgrajeno, izvorno"
IDS_DLL_DISABLED "onemogočeno" IDS_DLL_DISABLED "onemogočeno"
IDS_DEFAULT_SETTINGS "Privzete (sistemske) nastavitve" IDS_DEFAULT_SETTINGS "Privzete (sistemske) nastavitve"
IDS_EXECUTABLE_FILTER "Wine programi (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine programi (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Uporabi sistemske nastavitve" IDS_USE_GLOBAL_SETTINGS "Uporabi sistemske nastavitve"
IDS_SELECT_EXECUTABLE "Izberite izvršljivo datoteko" IDS_SELECT_EXECUTABLE "Izberite izvršljivo datoteko"
END END

View File

@ -247,7 +247,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "builtin, native" IDS_DLL_BUILTIN_NATIVE "builtin, native"
IDS_DLL_DISABLED "isključen" IDS_DLL_DISABLED "isključen"
IDS_DEFAULT_SETTINGS "Osnovno podešavanje" IDS_DEFAULT_SETTINGS "Osnovno podešavanje"
IDS_EXECUTABLE_FILTER "Wine programi (*.exe,*.exe.so)\\0*.exe;*.exe.so\\0" IDS_EXECUTABLE_FILTER "Wine programi (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Koristi globalna podešavanja" IDS_USE_GLOBAL_SETTINGS "Koristi globalna podešavanja"
IDS_SELECT_EXECUTABLE "Izaberi izvršni fajl" IDS_SELECT_EXECUTABLE "Izaberi izvršni fajl"
END END

View File

@ -244,7 +244,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "inbyggd, ursprunglig" IDS_DLL_BUILTIN_NATIVE "inbyggd, ursprunglig"
IDS_DLL_DISABLED "inaktiverad" IDS_DLL_DISABLED "inaktiverad"
IDS_DEFAULT_SETTINGS "Standardinställningar" IDS_DEFAULT_SETTINGS "Standardinställningar"
IDS_EXECUTABLE_FILTER "Wine-program (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine-program (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Använd globala inställningar" IDS_USE_GLOBAL_SETTINGS "Använd globala inställningar"
IDS_SELECT_EXECUTABLE "Välj en körbar fil" IDS_SELECT_EXECUTABLE "Välj en körbar fil"
END END

View File

@ -234,7 +234,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "yerleşik, doğal" IDS_DLL_BUILTIN_NATIVE "yerleşik, doğal"
IDS_DLL_DISABLED "devre dışı" IDS_DLL_DISABLED "devre dışı"
IDS_DEFAULT_SETTINGS "Öntanımlı Ayarlar" IDS_DEFAULT_SETTINGS "Öntanımlı Ayarlar"
IDS_EXECUTABLE_FILTER "Wine Programlarý (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine Programlarý (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Genel ayarları kullan" IDS_USE_GLOBAL_SETTINGS "Genel ayarları kullan"
IDS_SELECT_EXECUTABLE "Çalıştırılabilir bir dosya seçin" IDS_SELECT_EXECUTABLE "Çalıştırılabilir bir dosya seçin"
END END

View File

@ -250,7 +250,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "вбудована, стороння" IDS_DLL_BUILTIN_NATIVE "вбудована, стороння"
IDS_DLL_DISABLED "вимкнено" IDS_DLL_DISABLED "вимкнено"
IDS_DEFAULT_SETTINGS "Стандартні налаштування" IDS_DEFAULT_SETTINGS "Стандартні налаштування"
IDS_EXECUTABLE_FILTER "Програми Wine (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Програми Wine (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "Використати глобальні параметри" IDS_USE_GLOBAL_SETTINGS "Використати глобальні параметри"
IDS_SELECT_EXECUTABLE "Виберіть виконуваний файл" IDS_SELECT_EXECUTABLE "Виберіть виконуваний файл"
END END

View File

@ -249,7 +249,7 @@ BEGIN
IDS_DLL_BUILTIN_NATIVE "内建先于原装" IDS_DLL_BUILTIN_NATIVE "内建先于原装"
IDS_DLL_DISABLED "停用" IDS_DLL_DISABLED "停用"
IDS_DEFAULT_SETTINGS "默认设置" IDS_DEFAULT_SETTINGS "默认设置"
IDS_EXECUTABLE_FILTER "Wine 程序 (*.exe,*.exe.so)\0*.exe;*.exe.so\0" IDS_EXECUTABLE_FILTER "Wine 程序 (*.exe,*.exe.so)"
IDS_USE_GLOBAL_SETTINGS "使用全局设置" IDS_USE_GLOBAL_SETTINGS "使用全局设置"
IDS_SELECT_EXECUTABLE "选择可执行文件" IDS_SELECT_EXECUTABLE "选择可执行文件"
END END

View File

@ -29,6 +29,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
#include "wine/unicode.h"
#include "winecfg.h" #include "winecfg.h"
#include "resource.h" #include "resource.h"
@ -311,9 +312,10 @@ static BOOL list_contains_file(HWND listview, WCHAR *filename)
static void on_add_app_click(HWND dialog) static void on_add_app_click(HWND dialog)
{ {
static const WCHAR filterW[] = {'%','s','%','c','*','.','e','x','e',';','*','.','e','x','e','.','s','o','%','c',0};
WCHAR filetitle[MAX_PATH]; WCHAR filetitle[MAX_PATH];
WCHAR file[MAX_PATH]; WCHAR file[MAX_PATH];
WCHAR programsFilter[100]; WCHAR programsFilter[100], filter[MAX_PATH];
WCHAR selectExecutableStr[100]; WCHAR selectExecutableStr[100];
static const WCHAR pathC[] = { 'c',':','\\',0 }; static const WCHAR pathC[] = { 'c',':','\\',0 };
@ -327,9 +329,10 @@ static void on_add_app_click(HWND dialog)
sizeof(selectExecutableStr)/sizeof(selectExecutableStr[0])); sizeof(selectExecutableStr)/sizeof(selectExecutableStr[0]));
LoadStringW (GetModuleHandle (NULL), IDS_EXECUTABLE_FILTER, programsFilter, LoadStringW (GetModuleHandle (NULL), IDS_EXECUTABLE_FILTER, programsFilter,
sizeof(programsFilter)/sizeof(programsFilter[0])); sizeof(programsFilter)/sizeof(programsFilter[0]));
snprintfW( filter, MAX_PATH, filterW, programsFilter, 0, 0 );
ofn.lpstrTitle = selectExecutableStr; ofn.lpstrTitle = selectExecutableStr;
ofn.lpstrFilter = programsFilter; ofn.lpstrFilter = filter;
ofn.lpstrFileTitle = filetitle; ofn.lpstrFileTitle = filetitle;
ofn.lpstrFileTitle[0] = '\0'; ofn.lpstrFileTitle[0] = '\0';
ofn.nMaxFileTitle = sizeof(filetitle)/sizeof(filetitle[0]); ofn.nMaxFileTitle = sizeof(filetitle)/sizeof(filetitle[0]);