Commit 66b06a49 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

ipconfig: Fix the string resources so their format placeholders can be reordered.

parent 1eb25ca7
...@@ -8389,7 +8389,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8389,7 +8389,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8510,7 +8510,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8510,7 +8510,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8823,7 +8823,8 @@ msgstr "" ...@@ -8823,7 +8823,8 @@ msgstr ""
"especificats\n" "especificats\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s adaptador %s\n" msgstr "%s adaptador %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8891,7 +8891,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8891,7 +8891,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8925,7 +8925,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8925,7 +8925,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8833,7 +8833,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8833,7 +8833,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "Fehler: Unbekannte oder ungültige Kommandozeilenparameter angegeben\n" msgstr "Fehler: Unbekannte oder ungültige Kommandozeilenparameter angegeben\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s Adapter %s\n" msgstr "%s Adapter %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8414,7 +8414,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8414,7 +8414,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8604,8 +8604,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8604,8 +8604,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "Error: Unknown or invalid command line parameters specified\n" msgstr "Error: Unknown or invalid command line parameters specified\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "%s adapter %s\n" msgstr "%1 adapter %2\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
msgid "Ethernet" msgid "Ethernet"
......
...@@ -8753,8 +8753,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8753,8 +8753,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "Error: Unknown or invalid command line parameters specified\n" msgstr "Error: Unknown or invalid command line parameters specified\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "%s adapter %s\n" msgstr "%1 adapter %2\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
msgid "Ethernet" msgid "Ethernet"
......
...@@ -8523,7 +8523,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8523,7 +8523,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -9127,7 +9127,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -9127,7 +9127,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8391,7 +8391,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8391,7 +8391,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8621,7 +8621,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8621,7 +8621,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8856,7 +8856,8 @@ msgstr "" ...@@ -8856,7 +8856,8 @@ msgstr ""
"invalides\n" "invalides\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "Adaptateur %s %s\n" msgstr "Adaptateur %s %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8822,7 +8822,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8822,7 +8822,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "Error: Unknown or invalid command line parameters specified\n" msgstr "Error: Unknown or invalid command line parameters specified\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s adapter %s\n" msgstr "%s adapter %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8290,7 +8290,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8290,7 +8290,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8817,7 +8817,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8817,7 +8817,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8808,7 +8808,8 @@ msgstr "" ...@@ -8808,7 +8808,8 @@ msgstr ""
"validi\n" "validi\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s adattatore %s\n" msgstr "%s adattatore %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8750,7 +8750,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8750,7 +8750,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "エラー: 不明または無効なコマンド ライン パラメータが指定されました\n" msgstr "エラー: 不明または無効なコマンド ライン パラメータが指定されました\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s アダプタ %s\n" msgstr "%s アダプタ %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8719,7 +8719,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8719,7 +8719,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "오류: 알수 없거나 올바르지 않은 명령어 라인 매개변수가 지정됨\n" msgstr "오류: 알수 없거나 올바르지 않은 명령어 라인 매개변수가 지정됨\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s 어댑터 %s\n" msgstr "%s 어댑터 %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8770,7 +8770,8 @@ msgstr "" ...@@ -8770,7 +8770,8 @@ msgstr ""
"Klaida: nurodytas nežinomas arba netinkamas komandinės eilutės parametras\n" "Klaida: nurodytas nežinomas arba netinkamas komandinės eilutės parametras\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s adapteris %s\n" msgstr "%s adapteris %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8290,7 +8290,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8290,7 +8290,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8994,7 +8994,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8994,7 +8994,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8864,7 +8864,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8864,7 +8864,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "Fout: Onbekende of ongeldige commandoregelparameters gespecificeerd\n" msgstr "Fout: Onbekende of ongeldige commandoregelparameters gespecificeerd\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s adapter %s\n" msgstr "%s adapter %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8290,7 +8290,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8290,7 +8290,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8290,7 +8290,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8290,7 +8290,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8793,7 +8793,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8793,7 +8793,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "Błąd: Nierozpoznany lub niepełny wiersz polecenia\n" msgstr "Błąd: Nierozpoznany lub niepełny wiersz polecenia\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s karta %s\n" msgstr "%s karta %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -9026,7 +9026,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -9026,7 +9026,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -9039,7 +9039,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -9039,7 +9039,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8332,7 +8332,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8332,7 +8332,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -9268,7 +9268,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -9268,7 +9268,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8762,7 +8762,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8762,7 +8762,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "Ошибка: Указаны неизвестные или неверные параметры командной строки\n" msgstr "Ошибка: Указаны неизвестные или неверные параметры командной строки\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s адаптер %s\n" msgstr "%s адаптер %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8421,7 +8421,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8421,7 +8421,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8769,7 +8769,8 @@ msgstr "" ...@@ -8769,7 +8769,8 @@ msgstr ""
"Napaka: navedeni so bili nepoznani ali neveljavni parametri ukazne vrstice\n" "Napaka: navedeni so bili nepoznani ali neveljavni parametri ukazne vrstice\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s prilagodilnik %s\n" msgstr "%s prilagodilnik %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8700,7 +8700,8 @@ msgstr "" ...@@ -8700,7 +8700,8 @@ msgstr ""
"Грешка: унесени су непознати или неисправни параметри наредбене линије\n" "Грешка: унесени су непознати или неисправни параметри наредбене линије\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s адаптер %s\n" msgstr "%s адаптер %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8741,7 +8741,7 @@ msgstr "" ...@@ -8741,7 +8741,7 @@ msgstr ""
"Greška: uneseni su nepoznati ili neispravni parametri naredbene linije\n" "Greška: uneseni su nepoznati ili neispravni parametri naredbene linije\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8723,7 +8723,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8723,7 +8723,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "Fel: Okända eller ogiltiga kommandoradsparametrar angavs\n" msgstr "Fel: Okända eller ogiltiga kommandoradsparametrar angavs\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s-adapter %s\n" msgstr "%s-adapter %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8290,7 +8290,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8290,7 +8290,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8417,7 +8417,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8417,7 +8417,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8997,7 +8997,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8997,7 +8997,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8720,7 +8720,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8720,7 +8720,8 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "Помилка: Вказані невідомі чи невірні параметри командного рядка\n" msgstr "Помилка: Вказані невідомі чи невірні параметри командного рядка\n"
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" #, fuzzy
msgid "%1 adapter %2\n"
msgstr "%s адаптер %s\n" msgstr "%s адаптер %s\n"
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8369,7 +8369,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8369,7 +8369,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8264,7 +8264,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8264,7 +8264,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8657,7 +8657,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8657,7 +8657,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -8690,7 +8690,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n" ...@@ -8690,7 +8690,7 @@ msgid "Error: Unknown or invalid command line parameters specified\n"
msgstr "" msgstr ""
#: ipconfig.rc:29 #: ipconfig.rc:29
msgid "%s adapter %s\n" msgid "%1 adapter %2\n"
msgstr "" msgstr ""
#: ipconfig.rc:30 #: ipconfig.rc:30
......
...@@ -26,13 +26,14 @@ ...@@ -26,13 +26,14 @@
#include "ipconfig.h" #include "ipconfig.h"
static int ipconfig_vprintfW(const WCHAR *msg, va_list va_args) static int ipconfig_vprintfW(const WCHAR *msg, __ms_va_list va_args)
{ {
int wlen; int wlen;
DWORD count, ret; DWORD count, ret;
WCHAR msg_buffer[8192]; WCHAR msg_buffer[8192];
wlen = vsprintfW(msg_buffer, msg, va_args); wlen = FormatMessageW(FORMAT_MESSAGE_FROM_STRING, msg, 0, 0, msg_buffer,
sizeof(msg_buffer)/sizeof(*msg_buffer), &va_args);
ret = WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE), msg_buffer, wlen, &count, NULL); ret = WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE), msg_buffer, wlen, &count, NULL);
if (!ret) if (!ret)
...@@ -59,37 +60,37 @@ static int ipconfig_vprintfW(const WCHAR *msg, va_list va_args) ...@@ -59,37 +60,37 @@ static int ipconfig_vprintfW(const WCHAR *msg, va_list va_args)
return count; return count;
} }
static int ipconfig_printfW(const WCHAR *msg, ...) static int CDECL ipconfig_printfW(const WCHAR *msg, ...)
{ {
va_list va_args; __ms_va_list va_args;
int len; int len;
va_start(va_args, msg); __ms_va_start(va_args, msg);
len = ipconfig_vprintfW(msg, va_args); len = ipconfig_vprintfW(msg, va_args);
va_end(va_args); __ms_va_end(va_args);
return len; return len;
} }
static int ipconfig_message_printfW(int msg, ...) static int CDECL ipconfig_message_printfW(int msg, ...)
{ {
va_list va_args; __ms_va_list va_args;
WCHAR msg_buffer[8192]; WCHAR msg_buffer[8192];
int len; int len;
LoadStringW(GetModuleHandleW(NULL), msg, msg_buffer, LoadStringW(GetModuleHandleW(NULL), msg, msg_buffer,
sizeof(msg_buffer)/sizeof(WCHAR)); sizeof(msg_buffer)/sizeof(WCHAR));
va_start(va_args, msg); __ms_va_start(va_args, msg);
len = ipconfig_vprintfW(msg_buffer, va_args); len = ipconfig_vprintfW(msg_buffer, va_args);
va_end(va_args); __ms_va_end(va_args);
return len; return len;
} }
static int ipconfig_message(int msg) static int ipconfig_message(int msg)
{ {
static const WCHAR formatW[] = {'%','s',0}; static const WCHAR formatW[] = {'%','1',0};
WCHAR msg_buffer[8192]; WCHAR msg_buffer[8192];
LoadStringW(GetModuleHandleW(NULL), msg, msg_buffer, LoadStringW(GetModuleHandleW(NULL), msg, msg_buffer,
...@@ -123,7 +124,7 @@ static const WCHAR *iftype_to_string(DWORD type) ...@@ -123,7 +124,7 @@ static const WCHAR *iftype_to_string(DWORD type)
static void print_field(int msg, const WCHAR *value) static void print_field(int msg, const WCHAR *value)
{ {
static const WCHAR formatW[] = {' ',' ',' ',' ','%','s',':',' ','%','s','\n',0}; static const WCHAR formatW[] = {' ',' ',' ',' ','%','1',':',' ','%','2','\n',0};
WCHAR field[] = {'.',' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',' ','.', WCHAR field[] = {'.',' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',
' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',' ',0}; ' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',' ','.',' ',0};
...@@ -141,7 +142,7 @@ static void print_value(const WCHAR *value) ...@@ -141,7 +142,7 @@ static void print_value(const WCHAR *value)
' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
'%','s','\n',0}; '%','1','\n',0};
ipconfig_printfW(formatW, value); ipconfig_printfW(formatW, value);
} }
......
...@@ -26,7 +26,7 @@ STRINGTABLE ...@@ -26,7 +26,7 @@ STRINGTABLE
{ {
STRING_USAGE, "Usage: ipconfig [ /? | /all ]\n" STRING_USAGE, "Usage: ipconfig [ /? | /all ]\n"
STRING_INVALID_CMDLINE, "Error: Unknown or invalid command line parameters specified\n" STRING_INVALID_CMDLINE, "Error: Unknown or invalid command line parameters specified\n"
STRING_ADAPTER_FRIENDLY, "%s adapter %s\n" STRING_ADAPTER_FRIENDLY, "%1 adapter %2\n"
STRING_ETHERNET, "Ethernet" STRING_ETHERNET, "Ethernet"
STRING_UNKNOWN, "Unknown" STRING_UNKNOWN, "Unknown"
STRING_CONN_DNS_SUFFIX, "Connection-specific DNS suffix" STRING_CONN_DNS_SUFFIX, "Connection-specific DNS suffix"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment