Author: akhaldi
Date: Sun Feb 26 16:29:54 2017
New Revision: 73933
URL:
http://svn.reactos.org/svn/reactos?rev=73933&view=rev
Log:
[WMIC] Sync with Wine Staging 2.2. Dedicated to Hermès. CORE-12823
b21f4d0 wmic: Improve cmd line parser and add support for path command.
Modified:
trunk/reactos/base/applications/cmdutils/wmic/lang/de-DE.rc
trunk/reactos/base/applications/cmdutils/wmic/lang/en-US.rc
trunk/reactos/base/applications/cmdutils/wmic/lang/ro-RO.rc
trunk/reactos/base/applications/cmdutils/wmic/lang/ru-RU.rc
trunk/reactos/base/applications/cmdutils/wmic/lang/sq-AL.rc
trunk/reactos/base/applications/cmdutils/wmic/lang/zh-CN.rc
trunk/reactos/base/applications/cmdutils/wmic/lang/zh-TW.rc
trunk/reactos/base/applications/cmdutils/wmic/main.c
trunk/reactos/media/doc/README.WINE
Modified: trunk/reactos/base/applications/cmdutils/wmic/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/wmic/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/wmic/lang/de-DE.rc [iso-8859-1] Sun Feb 26
16:29:54 2017
@@ -5,5 +5,5 @@
STRING_CMDLINE_NOT_SUPPORTED, "Fehler: Befehlszeile nicht unterstützt\n"
STRING_ALIAS_NOT_FOUND, "Fehler: Alias nicht gefunden\n"
STRING_INVALID_QUERY, "Fehler: Ungültige Abfrage\n"
- STRING_INVALID_PATH, "Invalid syntax for PATH\n"
+ STRING_INVALID_PATH, "Error: Invalid syntax for PATH\n"
}
Modified: trunk/reactos/base/applications/cmdutils/wmic/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/wmic/lang/en-US.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/wmic/lang/en-US.rc [iso-8859-1] Sun Feb 26
16:29:54 2017
@@ -5,5 +5,5 @@
STRING_CMDLINE_NOT_SUPPORTED, "Error: Command line not supported\n"
STRING_ALIAS_NOT_FOUND, "Error: Alias not found\n"
STRING_INVALID_QUERY, "Error: Invalid query\n"
- STRING_INVALID_PATH, "Invalid syntax for PATH\n"
+ STRING_INVALID_PATH, "Error: Invalid syntax for PATH\n"
}
Modified: trunk/reactos/base/applications/cmdutils/wmic/lang/ro-RO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/wmic/lang/ro-RO.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/wmic/lang/ro-RO.rc [iso-8859-1] Sun Feb 26
16:29:54 2017
@@ -7,5 +7,5 @@
STRING_CMDLINE_NOT_SUPPORTED, "Eroare: ComandÄ nerecunoscutÄ.\n"
STRING_ALIAS_NOT_FOUND, "Eroare: Alias necunoscut.\n"
STRING_INVALID_QUERY, "Eroare: Cerere nevalidÄ.\n"
- STRING_INVALID_PATH, "ConÈinutul din «PATH» este sintactic nevalid.\n"
+ STRING_INVALID_PATH, "Eroare: ConÈinutul din «PATH» este sintactic
nevalid.\n"
}
Modified: trunk/reactos/base/applications/cmdutils/wmic/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/wmic/lang/ru-RU.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/wmic/lang/ru-RU.rc [iso-8859-1] Sun Feb 26
16:29:54 2017
@@ -5,5 +5,5 @@
STRING_CMDLINE_NOT_SUPPORTED, "ÐÑибка: ÐÐ¾Ð¼Ð°Ð½Ð´Ð½Ð°Ñ ÑÑÑока
не поддеÑживаеÑÑÑ\n"
STRING_ALIAS_NOT_FOUND, "ÐÑибка: ÐÑевдоним не
найден\n"
STRING_INVALID_QUERY, "ÐÑибка: ÐевеÑнÑй запÑоÑ\n"
- STRING_INVALID_PATH, "ÐевеÑнÑй ÑинÑакÑÐ¸Ñ PATH\n"
+ STRING_INVALID_PATH, "ÐÑибка: ÐевеÑнÑй ÑинÑакÑиÑ
PATH\n"
}
Modified: trunk/reactos/base/applications/cmdutils/wmic/lang/sq-AL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/wmic/lang/sq-AL.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/wmic/lang/sq-AL.rc [iso-8859-1] Sun Feb 26
16:29:54 2017
@@ -9,5 +9,5 @@
STRING_CMDLINE_NOT_SUPPORTED, "Gabim: Linja e komandave jo e
mbështetur\n"
STRING_ALIAS_NOT_FOUND, "Gabim: Pseudonimi nuk u gjend\n"
STRING_INVALID_QUERY, "Gabim: Kërkim pa vlere\n"
- STRING_INVALID_PATH, "Invalid syntax for PATH\n"
+ STRING_INVALID_PATH, "Error: Invalid syntax for PATH\n"
}
Modified: trunk/reactos/base/applications/cmdutils/wmic/lang/zh-CN.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/wmic/lang/zh-CN.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/wmic/lang/zh-CN.rc [iso-8859-1] Sun Feb 26
16:29:54 2017
@@ -7,5 +7,5 @@
STRING_CMDLINE_NOT_SUPPORTED, "é误: ä¸æ¯æçå½ä»¤è¡\n"
STRING_ALIAS_NOT_FOUND, "é误: å«åæªæ¾å°\n"
STRING_INVALID_QUERY, "é误: æ æçæ¥è¯¢\n"
- STRING_INVALID_PATH, "Invalid syntax for PATH\n"
+ STRING_INVALID_PATH, "Error: Invalid syntax for PATH\n"
}
Modified: trunk/reactos/base/applications/cmdutils/wmic/lang/zh-TW.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/wmic/lang/zh-TW.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/wmic/lang/zh-TW.rc [iso-8859-1] Sun Feb 26
16:29:54 2017
@@ -7,5 +7,5 @@
STRING_CMDLINE_NOT_SUPPORTED, "é¯èª¤: ä¸æ¯æ´çå½ä»¤å\n"
STRING_ALIAS_NOT_FOUND, "é¯èª¤: å¥åæªæ¾å°\n"
STRING_INVALID_QUERY, "é¯èª¤: ç¡æçæ¥è©¢\n"
- STRING_INVALID_PATH, "Invalid syntax for PATH\n"
+ STRING_INVALID_PATH, "Error: Invalid syntax for PATH\n"
}
Modified: trunk/reactos/base/applications/cmdutils/wmic/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/cmdutils…
==============================================================================
--- trunk/reactos/base/applications/cmdutils/wmic/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/cmdutils/wmic/main.c [iso-8859-1] Sun Feb 26 16:29:54
2017
@@ -252,16 +252,11 @@
static const WCHAR pathW[] = {'p','a','t','h',0};
static const WCHAR classW[] =
{'c','l','a','s','s',0};
static const WCHAR contextW[] =
{'c','o','n','t','e','x','t',0};
-
- const WCHAR *class;
- const WCHAR *value;
+ const WCHAR *class, *value;
int i;
- if (argc == 1)
- goto not_supported;
-
for (i = 1; i < argc && argv[i][0] == '/'; i++)
- WINE_FIXME("command line switch %s not supported\n",
debugstr_w(argv[i]));
+ WINE_FIXME( "command line switch %s not supported\n",
debugstr_w(argv[i]) );
if (i >= argc)
goto not_supported;
@@ -271,13 +266,15 @@
{
return 0;
}
- else if (!strcmpiW( argv[i], classW) ||
- !strcmpiW( argv[i], contextW))
- {
- WINE_FIXME("command %s not supported\n", debugstr_w(argv[i]));
+
+ if (!strcmpiW( argv[i], classW) ||
+ !strcmpiW( argv[i], contextW ))
+ {
+ WINE_FIXME( "command %s not supported\n", debugstr_w(argv[i]) );
goto not_supported;
}
- else if (!strcmpiW( argv[i], pathW))
+
+ if (!strcmpiW( argv[i], pathW ))
{
if (++i >= argc)
{
@@ -299,7 +296,7 @@
if (++i >= argc)
goto not_supported;
- if (!strcmpiW( argv[i], getW))
+ if (!strcmpiW( argv[i], getW ))
{
if (++i >= argc)
goto not_supported;
Modified: trunk/reactos/media/doc/README.WINE
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Sun Feb 26 16:29:54 2017
@@ -230,7 +230,7 @@
reactos/base/applications/cmdutils/reg # Synced to WineStaging-2.2
reactos/base/applications/cmdutils/schtasks # Synced to WineStaging-1.9.14
reactos/base/applications/cmdutils/taskkill # Synced to WineStaging-1.9.11
-reactos/base/applications/cmdutils/wmic # Synced to WineStaging-1.9.11
+reactos/base/applications/cmdutils/wmic # Synced to WineStaging-2.2
reactos/base/applications/cmdutils/wscript # Synced to WineStaging-1.9.16
reactos/base/applications/cmdutils/xcopy # Synced to WineStaging-1.9.11
reactos/base/applications/games/winmine # Synced to WineStaging-1.9.16 with our own
resources.