winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
October 2012
----- 2025 -----
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
960 discussions
Start a n
N
ew thread
Matteo Bruni : d3dcompiler: Add a trace to D3DAssemble.
by Alexandre Julliard
11 Oct '12
11 Oct '12
Module: wine Branch: master Commit: 5e66599737f531d0c47d5ffb36dac03bc9d75c96 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5e66599737f531d0c47d5ffb3…
Author: Matteo Bruni <mbruni(a)codeweavers.com> Date: Thu Oct 11 19:48:46 2012 +0200 d3dcompiler: Add a trace to D3DAssemble. --- dlls/d3dcompiler_43/compiler.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/d3dcompiler_43/compiler.c b/dlls/d3dcompiler_43/compiler.c index 04fc66d..caa6080 100644 --- a/dlls/d3dcompiler_43/compiler.c +++ b/dlls/d3dcompiler_43/compiler.c @@ -475,6 +475,10 @@ HRESULT WINAPI D3DAssemble(const void *data, SIZE_T datasize, const char *filena { HRESULT hr; + TRACE("data %p, datasize %lu, filename %s, defines %p, include %p, sflags %#x,\n" + "shader %p, error_messages %p\n", + data, datasize, debugstr_a(filename), defines, include, flags, shader, error_messages); + EnterCriticalSection(&wpp_mutex); /* TODO: flags */
1
0
0
0
Matteo Bruni : d3dcompiler: Avoid "naked" vars in record dereferences.
by Alexandre Julliard
11 Oct '12
11 Oct '12
Module: wine Branch: master Commit: 426b5b360989dbcfde16de4c009c4f02f8e60448 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=426b5b360989dbcfde16de4c0…
Author: Matteo Bruni <mbruni(a)codeweavers.com> Date: Thu Oct 11 19:48:45 2012 +0200 d3dcompiler: Avoid "naked" vars in record dereferences. --- dlls/d3dcompiler_43/utils.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/d3dcompiler_43/utils.c b/dlls/d3dcompiler_43/utils.c index eca67c9..5bd39e8 100644 --- a/dlls/d3dcompiler_43/utils.c +++ b/dlls/d3dcompiler_43/utils.c @@ -1568,7 +1568,10 @@ struct hlsl_ir_deref *new_record_deref(struct hlsl_ir_node *record, struct hlsl_ deref->node.type = HLSL_IR_DEREF; deref->node.data_type = field->type; deref->type = HLSL_IR_DEREF_RECORD; - deref->v.record.record = record; + if (record->type == HLSL_IR_VAR) + deref->v.record.record = &new_var_deref(var_from_node(record))->node; + else + deref->v.record.record = record; deref->v.record.field = field; return deref; }
1
0
0
0
Nozomi Kodama : d3dx9_36: Remove useless casts.
by Alexandre Julliard
11 Oct '12
11 Oct '12
Module: wine Branch: master Commit: 80b73ffcef7ae36f30f437ffc3e64b3b7df4033c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=80b73ffcef7ae36f30f437ffc…
Author: Nozomi Kodama <nozomi.kodama(a)yahoo.com> Date: Tue Oct 9 17:59:00 2012 -1000 d3dx9_36: Remove useless casts. --- dlls/d3dx9_36/tests/math.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c index 3eb31f9..166b14a 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -2431,8 +2431,8 @@ static void test_D3DXSHDot(void) for (i = 0; i < 49; i++) { - a[i] = (FLOAT)i + 1.0f; - b[i] = (FLOAT)i + 0.5f; + a[i] = i + 1.0f; + b[i] = i + 0.5f; } /* D3DXSHDot computes by using order * order elements */
1
0
0
0
Dmitry Timoshkov : gdiplus: Clarify where extra Y margin added by GdipMeasureString comes from.
by Alexandre Julliard
11 Oct '12
11 Oct '12
Module: wine Branch: master Commit: ca9182534556f2a34a8348f01c29ce4ea18f2f98 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ca9182534556f2a34a8348f01…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Thu Oct 11 19:50:07 2012 +0900 gdiplus: Clarify where extra Y margin added by GdipMeasureString comes from. --- dlls/gdiplus/tests/graphics.c | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/dlls/gdiplus/tests/graphics.c b/dlls/gdiplus/tests/graphics.c index 5ee5002..475f7d6 100644 --- a/dlls/gdiplus/tests/graphics.c +++ b/dlls/gdiplus/tests/graphics.c @@ -3821,17 +3821,25 @@ static void test_font_height_scaling(void) { static const WCHAR doubleW[2] = { 'W','W' }; RectF bounds_1, bounds_2; - REAL margin; + REAL margin, margin_y, font_height; int match; status = GdipSetPageUnit(graphics, gfx_unit); expect(Ok, status); + margin_y = units_to_pixels(height / 8.0, font_unit, dpi); + margin_y = pixels_to_units(margin_y, gfx_unit, dpi); + + status = GdipGetFontHeight(font, graphics, &font_height); + expect(Ok, status); + set_rect_empty(&rect); set_rect_empty(&bounds); status = GdipMeasureString(graphics, string, -1, font, &rect, format, &bounds, NULL, NULL); expect(Ok, status); /*trace("bounds: %f,%f,%f,%f\n", bounds.X, bounds.Y, bounds.Width, bounds.Height);*/ +todo_wine + expectf_(font_height + margin_y, bounds.Height, 0.005); ptf.X = 0; ptf.Y = bounds.Height; @@ -3864,9 +3872,6 @@ todo_wine /*trace("margin %f\n", margin);*/ ok(margin > 0.0, "wrong margin %f\n", margin); - status = GdipGetFontHeight(font, graphics, &height); - expect(Ok, status); - set_rect_empty(&rect); rect.Width = 320000.0; rect.Height = 320000.0; @@ -3880,9 +3885,9 @@ todo_wine expectf(0.0, rect.Y); match = fabs(1.0 - margin / rect.X) <= 0.05; ok(match, "Expected %f, got %f\n", margin, rect.X); - match = fabs(1.0 - height / rect.Height) <= 0.1; + match = fabs(1.0 - font_height / rect.Height) <= 0.1; todo_wine - ok(match, "Expected %f, got %f\n", height, rect.Height); + ok(match, "Expected %f, got %f\n", font_height, rect.Height); match = fabs(1.0 - bounds.Width / (rect.Width + margin * 2.0)) <= 0.05; ok(match, "Expected %f, got %f\n", bounds.Width, rect.Width + margin * 2.0); }
1
0
0
0
Dmitry Timoshkov : gdiplus: Clarify where extra Y margin added by GdipMeasureString comes from.
by Alexandre Julliard
11 Oct '12
11 Oct '12
Module: wine Branch: master Commit: 608a936adaa40c2a8ddd554c7d742f15e330ae7a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=608a936adaa40c2a8ddd554c7…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Thu Oct 11 19:49:13 2012 +0900 gdiplus: Clarify where extra Y margin added by GdipMeasureString comes from. --- dlls/gdiplus/tests/font.c | 34 ++++++++++++++++++---------------- 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index d710a5b..c06a954 100644 --- a/dlls/gdiplus/tests/font.c +++ b/dlls/gdiplus/tests/font.c @@ -824,7 +824,7 @@ static void test_font_transform(void) GpMatrix *matrix; GpStringFormat *format, *typographic; PointF pos[1] = { { 0,0 } }; - REAL height; + REAL height, margin_y; RectF bounds, rect; hdc = CreateCompatibleDC(0); @@ -846,6 +846,8 @@ static void test_font_transform(void) status = GdipCreateFontFromLogfontA(hdc, &lf, &font); expect(Ok, status); + margin_y = 100.0 / 8.0; + /* identity matrix */ status = GdipCreateMatrix(&matrix); expect(Ok, status); @@ -865,7 +867,7 @@ static void test_font_transform(void) expectf(0.0, bounds.X); expectf(0.0, bounds.Y); todo_wine - expectf(133.203125, bounds.Height); + expectf(height + margin_y, bounds.Height); set_rect_empty(&rect); set_rect_empty(&bounds); status = GdipMeasureString(graphics, string, -1, font, &rect, typographic, &bounds, NULL, NULL); @@ -873,7 +875,7 @@ todo_wine expectf(0.0, bounds.X); expectf(0.0, bounds.Y); todo_wine - expectf(120.703125, bounds.Height); + expectf(height, bounds.Height); set_rect_empty(&bounds); status = GdipMeasureDriverString(graphics, (const UINT16 *)string, -1, font, pos, DriverStringOptionsCmapLookup, NULL, &bounds); @@ -882,7 +884,7 @@ todo_wine todo_wine expectf_(-100.0, bounds.Y, 0.05); todo_wine - expectf(120.703125, bounds.Height); + expectf(height, bounds.Height); /* scale matrix */ status = GdipScaleMatrix(matrix, 2.0, 3.0, MatrixOrderAppend); @@ -904,7 +906,7 @@ todo_wine expectf(0.0, bounds.X); expectf(0.0, bounds.Y); todo_wine - expectf(133.203125, bounds.Height); + expectf(height + margin_y, bounds.Height); set_rect_empty(&rect); set_rect_empty(&bounds); status = GdipMeasureString(graphics, string, -1, font, &rect, typographic, &bounds, NULL, NULL); @@ -912,7 +914,7 @@ todo_wine expectf(0.0, bounds.X); expectf(0.0, bounds.Y); todo_wine - expectf(120.703125, bounds.Height); + expectf(height, bounds.Height); set_rect_empty(&bounds); status = GdipMeasureDriverString(graphics, (const UINT16 *)string, -1, font, pos, DriverStringOptionsCmapLookup, NULL, &bounds); @@ -921,7 +923,7 @@ todo_wine todo_wine expectf_(-100.0, bounds.Y, 0.05); todo_wine - expectf(120.703125, bounds.Height); + expectf(height, bounds.Height); /* scale + ratate matrix */ status = GdipRotateMatrix(matrix, 45.0, MatrixOrderAppend); @@ -943,7 +945,7 @@ todo_wine expectf(0.0, bounds.X); expectf(0.0, bounds.Y); todo_wine - expectf(133.203125, bounds.Height); + expectf(height + margin_y, bounds.Height); set_rect_empty(&rect); set_rect_empty(&bounds); status = GdipMeasureString(graphics, string, -1, font, &rect, typographic, &bounds, NULL, NULL); @@ -951,7 +953,7 @@ todo_wine expectf(0.0, bounds.X); expectf(0.0, bounds.Y); todo_wine - expectf(120.703125, bounds.Height); + expectf(height, bounds.Height); set_rect_empty(&bounds); status = GdipMeasureDriverString(graphics, (const UINT16 *)string, -1, font, pos, DriverStringOptionsCmapLookup, NULL, &bounds); @@ -960,7 +962,7 @@ todo_wine todo_wine expectf_(-100.0, bounds.Y, 0.05); todo_wine - expectf(120.703125, bounds.Height); + expectf(height, bounds.Height); /* scale + ratate + shear matrix */ status = GdipShearMatrix(matrix, 4.0, 5.0, MatrixOrderAppend); @@ -982,7 +984,7 @@ todo_wine expectf(0.0, bounds.X); expectf(0.0, bounds.Y); todo_wine - expectf(133.203125, bounds.Height); + expectf(height + margin_y, bounds.Height); set_rect_empty(&rect); set_rect_empty(&bounds); status = GdipMeasureString(graphics, string, -1, font, &rect, typographic, &bounds, NULL, NULL); @@ -990,7 +992,7 @@ todo_wine expectf(0.0, bounds.X); expectf(0.0, bounds.Y); todo_wine - expectf(120.703125, bounds.Height); + expectf(height, bounds.Height); set_rect_empty(&bounds); status = GdipMeasureDriverString(graphics, (const UINT16 *)string, -1, font, pos, DriverStringOptionsCmapLookup, NULL, &bounds); @@ -999,7 +1001,7 @@ todo_wine todo_wine expectf_(-100.0, bounds.Y, 0.05); todo_wine - expectf(120.703125, bounds.Height); + expectf(height, bounds.Height); /* scale + ratate + shear + translate matrix */ status = GdipTranslateMatrix(matrix, 10.0, 20.0, MatrixOrderAppend); @@ -1021,7 +1023,7 @@ todo_wine expectf(0.0, bounds.X); expectf(0.0, bounds.Y); todo_wine - expectf(133.203125, bounds.Height); + expectf(height + margin_y, bounds.Height); set_rect_empty(&rect); set_rect_empty(&bounds); status = GdipMeasureString(graphics, string, -1, font, &rect, typographic, &bounds, NULL, NULL); @@ -1029,7 +1031,7 @@ todo_wine expectf(0.0, bounds.X); expectf(0.0, bounds.Y); todo_wine - expectf(120.703125, bounds.Height); + expectf(height, bounds.Height); set_rect_empty(&bounds); status = GdipMeasureDriverString(graphics, (const UINT16 *)string, -1, font, pos, DriverStringOptionsCmapLookup, NULL, &bounds); @@ -1038,7 +1040,7 @@ todo_wine todo_wine expectf_(-100.0, bounds.Y, 0.05); todo_wine - expectf(120.703125, bounds.Height); + expectf(height, bounds.Height); GdipDeleteMatrix(matrix); GdipDeleteFont(font);
1
0
0
0
Frédéric Delanoy : cmd/tests: Add tests for command line parsing.
by Alexandre Julliard
11 Oct '12
11 Oct '12
Module: wine Branch: master Commit: 3803134fce8bdc4074107f2573f5db749a56367d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3803134fce8bdc4074107f257…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Thu Oct 11 03:08:02 2012 +0200 cmd/tests: Add tests for command line parsing. Adapted from original patch by Martin Wilck <mwilck(a)arcor.de>. --- programs/cmd/tests/test_cmdline.cmd | 167 +++++++++++++++++++++++++++++++ programs/cmd/tests/test_cmdline.cmd.exp | 77 ++++++++++++++ 2 files changed, 244 insertions(+), 0 deletions(-) diff --git a/programs/cmd/tests/test_cmdline.cmd b/programs/cmd/tests/test_cmdline.cmd index ad035ab..7e08b29 100644 --- a/programs/cmd/tests/test_cmdline.cmd +++ b/programs/cmd/tests/test_cmdline.cmd @@ -88,3 +88,170 @@ cmd.exe /c exit cd .. rd foobar /s /q + +rem - Temporary batch files +echo @echo 0 > "say.bat" +echo @echo 1 > "say one.bat" +echo @echo 2 > "saytwo.bat" +echo @echo 3 > "say (3).bat" +echo @echo 4 > "say .bat" + +echo ------ Testing invocation of batch files ---------- +call say one +call "say one" +call "say"" one" +call "say one +call :setError 0 +call say" one" +if errorlevel 2 echo error %ErrorLevel% +call say "one" +call :setError 0 +call s"ay one +if errorlevel 2 echo error %ErrorLevel% +call :setError 0 +call s"aytwo +if errorlevel 2 echo error %ErrorLevel% +call say (3) +call "say (3)" +call :setError 0 +call say" (3)" +if errorlevel 2 echo error %ErrorLevel% +call :setError 0 +call say" "(3) prints 4?! +if errorlevel 2 echo error %ErrorLevel% + +echo ------ Testing invocation with CMD /C ------------- +cmd /c say one +cmd /c "say one" +call :setError 0 +cmd /c "say"" one" +if errorlevel 2 echo error %ErrorLevel% +cmd /c "say one +call :setError 0 +cmd /c say" one" +if errorlevel 2 echo error %ErrorLevel% +cmd /c say "one" +call :setError 0 +cmd /c s"ay one +if errorlevel 2 echo error %ErrorLevel% +call :setError 0 +cmd /c s"aytwo +if errorlevel 2 echo error %ErrorLevel% +cmd /c say (3) +call :setError 0 +cmd /c say" (3)" +if errorlevel 2 echo error %ErrorLevel% +call :setError 0 +cmd /c say" "(3) prints 4?! +if errorlevel 2 echo error %ErrorLevel% + +echo ---------- Testing CMD /C quoting ----------------- +cmd /c @echo "hi" +call :setError 0 +cmd /c say" "one +if errorlevel 2 echo error %ErrorLevel% +cmd /c @echo "\"\\"\\\"\\\\" "\"\\"\\\"\\\\" +rem ---- all 5 conditions met, quotes preserved +cmd /c "say one" +rem cond 1 - /s +cmd /s/c "say one" +cmd /s/c ""say one"" +rem cond 2 - not 2 quotes +cmd /c "say one +call :setError 0 +cmd /c "say"" one" +if errorlevel 2 echo error %ErrorLevel% +rem cond 3 - special char - first test fails on Vista, W2K8! +cmd /c "say (3)" +cmd /c ""say (3)"" +rem cond 4 - no spaces (quotes make no difference here) +cmd /c saytwo +cmd /c "saytwo" +cmd /c "saytwo +rem cond 5 - string between quotes must be name of executable +cmd /c "say five" +echo @echo 5 >"say five.bat" +cmd /c "say five" + +echo ------- Testing CMD /C qualifier treatment ------------ +rem no need for space after /c +cmd /csay one +cmd /c"say one" +rem ignore quote before qualifier +rem FIXME the next command in wine starts a sub-CMD +echo THIS FAILS: cmd "/c"say one +rem ignore anything before /c +rem FIXME the next command in wine starts a sub-CMD +echo THIS FAILS: cmd ignoreme/c say one + +echo --------- Testing special characters -------------- +echo @echo amp > "say&.bat" +call say& +echo @echo ( > "say(.bat" +call say( +echo @echo ) > "say).bat" +call say) +echo @echo [ > "say[.bat" +call say[ +echo @echo ] > "say].bat" +call say] +echo @echo { > "say{.bat" +call say{ +echo @echo } > "say}.bat" +call say} +echo @echo = > "say=.bat" +call say= +echo @echo sem > "say;.bat" +call say; +setlocal DisableDelayedExpansion +echo @echo ! > "say!.bat" +call say! +endlocal +setlocal EnableDelayedExpansion +call say! +endlocal +echo @echo %%%% > "say%%.bat" +call say%% +echo @echo ' > "say'.bat" +call say' +echo @echo + > "say+.bat" +call say+ +echo @echo com > "say,.bat" +call say, +echo @echo ` > "say`.bat" +call say' +echo @echo ~ > "say~.bat" +call say~ + +echo --------- Testing parameter passing -------------- +echo @echo 1:%%1,2:%%2 > tell.bat +call tell 1 +call tell (1) +call tell 1(2) +call :setError 0 +call tell(1) +if errorlevel 2 echo error %ErrorLevel% +call :setError 0 +call tell((1)) +if errorlevel 2 echo error %ErrorLevel% +call :setError 0 +call tell(1)(2) +if errorlevel 2 echo error %ErrorLevel% +call :setError 0 +call tell(1);,;(2) +if errorlevel 2 echo error %ErrorLevel% +call :setError 0 +call tell;1 2 +if errorlevel 2 echo error %ErrorLevel% +call :setError 0 +call tell; 1, ;2 +if errorlevel 2 echo error %ErrorLevel% +call :setError 0 +call tell;1;;2 +if errorlevel 2 echo error %ErrorLevel% +call tell "p "1 p" "2 +call tell p"1 p";2 +del tell.bat say*.* +exit +:setError +exit /B %1 diff --git a/programs/cmd/tests/test_cmdline.cmd.exp b/programs/cmd/tests/test_cmdline.cmd.exp index 36645da..7e9ac32 100644 --- a/programs/cmd/tests/test_cmdline.cmd.exp +++ b/programs/cmd/tests/test_cmdline.cmd.exp @@ -45,3 +45,80 @@ one = %1 @todo_wine@var contents: 11 var=33@space@ 99 +------ Testing invocation of batch files ---------- +0@space@ +1@space@ +@todo_wine@1@space@ +1@space@ +@todo_wine@1@space@ +0@space@ +@todo_wine@1@space@ +@todo_wine@2@space@ +0@space@ +3@space@ +@todo_wine@3@space@ +@todo_wine@4@space@ +------ Testing invocation with CMD /C ------------- +0@space@ +@todo_wine@1@space@ +@todo_wine@0@space@ +0@space@ +@todo_wine@1@space@ +0@space@ +@todo_wine@1@space@ +@todo_wine@2@space@ +0@space@ +@todo_wine@3@space@ +@todo_wine@4@space@ +---------- Testing CMD /C quoting ----------------- +"hi" +@todo_wine@1@space@ +"\"\\"\\\"\\\\"@space@"\"\\"\\\"\\\\" +@todo_wine@1@space@ +0@space@ +1@space@ +0@space@ +@todo_wine@0@space@ +0@space@@or_broken@3@space@ +3@space@ +2@space@ +2@space@ +2@space@ +0@space@ +@todo_wine@5@space@ +------- Testing CMD /C qualifier treatment ------------ +0@space@ +@todo_wine@1@space@ +THIS FAILS: cmd "/c"say one +THIS FAILS: cmd ignoreme/c say one +--------- Testing special characters -------------- +0@space@ +@todo_wine@0@space@ +)@space@ +[@space@ +]@space@ +{@space@ +}@space@ +0@space@ +@todo_wine@0@space@ +!@space@ +@todo_wine@0@space@@or_broken@!@space@ +@todo_wine@0@space@ +'@space@ ++@space@ +0@space@ +'@space@ +~@space@ +--------- Testing parameter passing -------------- +1:1,2:@space@ +1:(1),2:@space@ +1:1(2),2:@space@ +@todo_wine@1:(1),2:@space@ +@todo_wine@1:((1)),2:@space@ +@todo_wine@1:(1)(2),2:@space@ +@todo_wine@1:(1),2:(2)@space@ +@todo_wine@1:1,2:2@space@ +@todo_wine@1:1,2:2@space@ +@todo_wine@1:1,2:2@space@ +1:"p@space@"1,2:p"@space@"2@space@ +1:p"1@space@p",2:2@space@
1
0
0
0
Frédéric Delanoy : cmd/tests: Move command line tests to separate file.
by Alexandre Julliard
11 Oct '12
11 Oct '12
Module: wine Branch: master Commit: 0ab71a42b4a23e5aef74c476eb6c63bf099651a9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0ab71a42b4a23e5aef74c476e…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Thu Oct 11 03:08:01 2012 +0200 cmd/tests: Move command line tests to separate file. --- programs/cmd/tests/rsrc.rc | 6 ++ programs/cmd/tests/test_builtins.cmd | 90 ------------------------------ programs/cmd/tests/test_builtins.cmd.exp | 48 ---------------- programs/cmd/tests/test_cmdline.cmd | 90 ++++++++++++++++++++++++++++++ programs/cmd/tests/test_cmdline.cmd.exp | 47 +++++++++++++++ 5 files changed, 143 insertions(+), 138 deletions(-) diff --git a/programs/cmd/tests/rsrc.rc b/programs/cmd/tests/rsrc.rc index bcb738d..affe04c 100644 --- a/programs/cmd/tests/rsrc.rc +++ b/programs/cmd/tests/rsrc.rc @@ -21,3 +21,9 @@ test_builtins.cmd TESTCMD "test_builtins.cmd" /* @makedep: test_builtins.cmd.exp */ test_builtins.cmd.exp TESTOUT "test_builtins.cmd.exp" + +/* @makedep: test_cmdline.cmd */ +test_cmdline.cmd TESTCMD "test_cmdline.cmd" + +/* @makedep: test_cmdline.cmd.exp */ +test_cmdline.cmd.exp TESTOUT "test_cmdline.cmd.exp" diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd index bdd6cd0..8a47238 100644 --- a/programs/cmd/tests/test_builtins.cmd +++ b/programs/cmd/tests/test_builtins.cmd @@ -1820,96 +1820,6 @@ set var= set var2= cd .. & rd /q/s foobar -echo ------------ cmd.exe command lines ------------ -mkdir foobar -cd foobar -echo file1 > file1 - -rem Basic test of command line. Note a section prefix per command -rem to resync, as wine does not output anything in these cases yet. -echo --- Test 1 -cmd.exe /c echo Line1 -cmd.exe /c echo "Line2" -echo --- Test 2 -cmd.exe /c echo Test quotes "&" work -echo --- Test 3 -cmd.exe /c echo "&" -echo --- Test 4 -cmd.exe /c echo "<" -echo --- Test 5 -cmd.exe /c echo ">" -echo --- Test 6 -cmd.exe /c echo "\" -echo --- Test 7 -cmd.exe /c echo "|" -echo --- Test 8 -cmd.exe /c echo "`" -echo --- Test 9 -cmd.exe /c echo """ -echo --- Test 10 -echo on > file3 -@type file3 -@echo off -echo --- Test 11 -cmd.exe /c echo on >file3 -@type file3 -@echo off -echo --- Test 12 -cmd.exe /c "echo passed1" -echo --- Test 13 -cmd.exe /c " echo passed2 " -echo --- Test 14 -cmd.exe /c "dir /ad ..\fooba* /b" -echo --- Test 15 -cmd.exe /cecho No whitespace -echo --- Test 16 -cmd.exe /c -echo --- Test 17 -cmd.exe /c@space@ -echo --- Test 18 -rem Ensure no interactive prompting when cmd.exe /c or /k -echo file2 > file2 -cmd.exe /c copy file1 file2 >nul -echo No prompts or I would not get here1 -rem - Try cmd.exe /k as well -cmd.exe /k "copy file1 file2 >nul && exit" -echo No prompts or I would not get here2 - -rem Non existing variable expansion is as per command line, ie left as-is -cmd.exe /c echo %%hello1%% -cmd.exe /c echo %%hello2 -cmd.exe /c echo %%hello3^:h=t%% -cmd.exe /c echo %%hello4%%%% - -rem Cannot issue a call from cmd.exe /c -cmd.exe /c call :hello5 - -rem %1-9 has no meaning -cmd.exe /c echo one = %%1 - -rem for loop vars need expanding -cmd.exe /c for /L %%i in (1,1,5) do @echo %%i - -rem goto's are ineffective -cmd.exe /c goto :fred -cmd.exe /c goto eof - -rem - %var% is expanded at read time, not execute time -set var=11 -cmd.exe /c "set var=22 && setlocal && set var=33 && endlocal && echo var contents: %%var%%" - -rem - endlocal ineffective on cmd.exe /c lines -cmd.exe /c "set var=22 && setlocal && set var=33 && endlocal && set var" -set var=99 - -rem - Environment is inherited ok -cmd.exe /c ECHO %%VAR%% - -rem - Exit works -cmd.exe /c exit - -cd .. -rd foobar /s /q echo ------------ Testing Errorlevel ------------ rem WARNING: Do *not* add tests using ErrorLevel after this section should_not_exist 2> nul > nul diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp index 1d004b7..4bab1ef 100644 --- a/programs/cmd/tests/test_builtins.cmd.exp +++ b/programs/cmd/tests/test_builtins.cmd.exp @@ -907,54 +907,6 @@ value1 2 1 1 ------------- cmd.exe command lines ------------ ---- Test 1 -Line1 -"Line2" ---- Test 2 -Test quotes "&" work ---- Test 3 -"&" ---- Test 4 -"<" ---- Test 5 -">" ---- Test 6 -"\" ---- Test 7 -"|" ---- Test 8 -"`" ---- Test 9 -""" ---- Test 10 ---- Test 11 ---- Test 12 -passed1 ---- Test 13 -passed2@space@ ---- Test 14 -foobar ---- Test 15 -No whitespace ---- Test 16 ---- Test 17 ---- Test 18 -No prompts or I would not get here1 -No prompts or I would not get here2 -%hello1% -%hello2 -%hello3:h=t% -%hello4%% -one = %1 -1 -2 -3 -4 -5 -@todo_wine@var contents: 11 -var=33@space@ -99 ------------ Testing Errorlevel ------------ 9009 1 diff --git a/programs/cmd/tests/test_cmdline.cmd b/programs/cmd/tests/test_cmdline.cmd new file mode 100644 index 0000000..ad035ab --- /dev/null +++ b/programs/cmd/tests/test_cmdline.cmd @@ -0,0 +1,90 @@ +@echo off +mkdir foobar +cd foobar +echo file1 > file1 + +rem Basic test of command line. Note a section prefix per command +rem to resync, as wine does not output anything in these cases yet. +echo --- Test 1 +cmd.exe /c echo Line1 +cmd.exe /c echo "Line2" +echo --- Test 2 +cmd.exe /c echo Test quotes "&" work +echo --- Test 3 +cmd.exe /c echo "&" +echo --- Test 4 +cmd.exe /c echo "<" +echo --- Test 5 +cmd.exe /c echo ">" +echo --- Test 6 +cmd.exe /c echo "\" +echo --- Test 7 +cmd.exe /c echo "|" +echo --- Test 8 +cmd.exe /c echo "`" +echo --- Test 9 +cmd.exe /c echo """ +echo --- Test 10 +echo on > file3 +@type file3 +@echo off +echo --- Test 11 +cmd.exe /c echo on >file3 +@type file3 +@echo off +echo --- Test 12 +cmd.exe /c "echo passed1" +echo --- Test 13 +cmd.exe /c " echo passed2 " +echo --- Test 14 +cmd.exe /c "dir /ad ..\fooba* /b" +echo --- Test 15 +cmd.exe /cecho No whitespace +echo --- Test 16 +cmd.exe /c +echo --- Test 17 +cmd.exe /c@space@ +echo --- Test 18 +rem Ensure no interactive prompting when cmd.exe /c or /k +echo file2 > file2 +cmd.exe /c copy file1 file2 >nul +echo No prompts or I would not get here1 +rem - Try cmd.exe /k as well +cmd.exe /k "copy file1 file2 >nul && exit" +echo No prompts or I would not get here2 + +rem Non existing variable expansion is as per command line, i.e. left as-is +cmd.exe /c echo %%hello1%% +cmd.exe /c echo %%hello2 +cmd.exe /c echo %%hello3^:h=t%% +cmd.exe /c echo %%hello4%%%% + +rem Cannot issue a call from cmd.exe /c +cmd.exe /c call :hello5 + +rem %1-9 has no meaning +cmd.exe /c echo one = %%1 + +rem for loop vars need expanding +cmd.exe /c for /L %%i in (1,1,5) do @echo %%i + +rem goto's are ineffective +cmd.exe /c goto :fred +cmd.exe /c goto eof + +rem - %var% is expanded at read time, not execute time +set var=11 +cmd.exe /c "set var=22 && setlocal && set var=33 && endlocal && echo var contents: %%var%%" + +rem - endlocal ineffective on cmd.exe /c lines +cmd.exe /c "set var=22 && setlocal && set var=33 && endlocal && set var" +set var=99 + +rem - Environment is inherited ok +cmd.exe /c ECHO %%VAR%% + +rem - Exit works +cmd.exe /c exit + +cd .. +rd foobar /s /q diff --git a/programs/cmd/tests/test_cmdline.cmd.exp b/programs/cmd/tests/test_cmdline.cmd.exp new file mode 100644 index 0000000..36645da --- /dev/null +++ b/programs/cmd/tests/test_cmdline.cmd.exp @@ -0,0 +1,47 @@ +--- Test 1 +Line1 +"Line2" +--- Test 2 +Test quotes "&" work +--- Test 3 +"&" +--- Test 4 +"<" +--- Test 5 +">" +--- Test 6 +"\" +--- Test 7 +"|" +--- Test 8 +"`" +--- Test 9 +""" +--- Test 10 +--- Test 11 +--- Test 12 +passed1 +--- Test 13 +passed2@space@ +--- Test 14 +foobar +--- Test 15 +No whitespace +--- Test 16 +--- Test 17 +--- Test 18 +No prompts or I would not get here1 +No prompts or I would not get here2 +%hello1% +%hello2 +%hello3:h=t% +%hello4%% +one = %1 +1 +2 +3 +4 +5 +@todo_wine@var contents: 11 +var=33@space@ +99
1
0
0
0
Sergey Guralnik : user32/tests: Add tests for class small icons.
by Alexandre Julliard
11 Oct '12
11 Oct '12
Module: wine Branch: master Commit: e193e43c2982cf2940b29af52a8bba6d0e8784b5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e193e43c2982cf2940b29af52…
Author: Sergey Guralnik <serhio(a)etersoft.ru> Date: Wed Oct 10 14:34:01 2012 +0400 user32/tests: Add tests for class small icons. --- dlls/user32/tests/class.c | 58 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c index 1fa9b9b..8e4be6a 100644 --- a/dlls/user32/tests/class.c +++ b/dlls/user32/tests/class.c @@ -977,6 +977,63 @@ if (0) { /* crashes under XP */ ok(wcx.lpfnWndProc != NULL, "got null proc\n"); } +static void test_icons(void) +{ + WNDCLASSEXW wcex, ret_wcex; + WCHAR cls_name[] = {'I','c','o','n','T','e','s','t','C','l','a','s','s',0}; + HWND hwnd; + HINSTANCE hinst = GetModuleHandleW(0); + HICON hsmicon, hsmallnew; + ICONINFO icinf; + + memset(&wcex, 0, sizeof wcex); + wcex.cbSize = sizeof wcex; + wcex.lpfnWndProc = ClassTest_WndProc; + wcex.hIcon = LoadIconW(0, (LPCWSTR)IDI_APPLICATION); + wcex.hInstance = hinst; + wcex.lpszClassName = cls_name; + ok(RegisterClassExW(&wcex), "RegisterClassExW returned 0\n"); + hwnd = CreateWindowExW(0, cls_name, NULL, WS_OVERLAPPEDWINDOW, + 0, 0, 0, 0, NULL, NULL, hinst, 0); + ok(hwnd != NULL, "Window was not created\n"); + + ok(GetClassInfoExW(hinst, cls_name, &ret_wcex), "Class info was not retrieved\n"); + ok(wcex.hIcon == ret_wcex.hIcon, "Icons don't match\n"); +todo_wine + ok(ret_wcex.hIconSm != NULL, "hIconSm should be non-zero handle\n"); + + hsmicon = (HICON)GetClassLongPtrW(hwnd, GCLP_HICONSM); +todo_wine + ok(hsmicon != NULL, "GetClassLong should return non-zero handle\n"); + + hsmallnew = CopyImage(wcex.hIcon, IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), + GetSystemMetrics(SM_CYSMICON), 0); + ok(!SetClassLongPtrW(hwnd, GCLP_HICONSM, (LONG_PTR)hsmallnew), + "Previous hIconSm should be zero\n"); + ok(hsmallnew == (HICON)GetClassLongPtrW(hwnd, GCLP_HICONSM), + "Should return explicitly assigned small icon"); + ok(!GetIconInfo(hsmicon, &icinf), "Previous small icon should be destroyed\n"); + + SetClassLongPtrW(hwnd, GCLP_HICONSM, 0); + hsmicon = (HICON)GetClassLongPtrW(hwnd, GCLP_HICONSM); +todo_wine + ok( hsmicon != NULL, "GetClassLong should return non-zero handle\n"); + + SetClassLongPtrW(hwnd, GCLP_HICON, 0); + ok(!GetClassLongPtrW(hwnd, GCLP_HICONSM), "GetClassLong should return zero handle\n"); + + SetClassLongPtrW(hwnd, GCLP_HICON, (LONG_PTR)LoadIconW(NULL, (LPCWSTR)IDI_QUESTION)); + hsmicon = (HICON)GetClassLongPtrW(hwnd, GCLP_HICONSM); +todo_wine + ok(hsmicon != NULL, "GetClassLong should return non-zero handle\n"); + UnregisterClassW(cls_name, hinst); +todo_wine + ok(GetIconInfo(hsmicon, &icinf), "Icon should NOT be destroyed\n"); + + DestroyIcon(hsmallnew); + DestroyWindow(hwnd); +} + START_TEST(class) { HANDLE hInstance = GetModuleHandleA( NULL ); @@ -995,6 +1052,7 @@ START_TEST(class) CreateDialogParamTest(hInstance); test_styles(); test_builtinproc(); + test_icons(); /* this test unregisters the Button class so it should be executed at the end */ test_instances();
1
0
0
0
André Hentschel : include: Update EXTENDED_NAME_FORMAT enumeration.
by Alexandre Julliard
11 Oct '12
11 Oct '12
Module: wine Branch: master Commit: 429e47f29a5650456b2a58e47f578a80394d701c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=429e47f29a5650456b2a58e47…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Wed Oct 10 21:08:05 2012 +0200 include: Update EXTENDED_NAME_FORMAT enumeration. --- include/secext.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/include/secext.h b/include/secext.h index 1f04d3d..42b4b3e 100644 --- a/include/secext.h +++ b/include/secext.h @@ -34,7 +34,9 @@ typedef enum NameUserPrincipal = 8, NameCanonicalEx = 9, NameServicePrincipal = 10, - NameDnsDomain = 12 + NameDnsDomain = 12, + NameGivenName = 13, + NameSurname = 14, } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT; BOOLEAN WINAPI GetComputerObjectNameA( EXTENDED_NAME_FORMAT, LPSTR, PULONG );
1
0
0
0
Dmitry Timoshkov : gdiplus: Use IFD_SHORT type for the TIFF compression tag to avoid test failures under some XP versions .
by Alexandre Julliard
11 Oct '12
11 Oct '12
Module: wine Branch: master Commit: 9d49bb2b0038e70a223f4392431a757c94295a2b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9d49bb2b0038e70a223f43924…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Thu Oct 11 12:33:30 2012 +0900 gdiplus: Use IFD_SHORT type for the TIFF compression tag to avoid test failures under some XP versions. --- dlls/gdiplus/tests/image.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index 62bc48b..46e250d 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -3006,7 +3006,7 @@ static const struct tiff_data { 0x100, IFD_LONG, 1, 1 }, /* IMAGEWIDTH */ { 0x101, IFD_LONG, 1, 1 }, /* IMAGELENGTH */ { 0x102, IFD_SHORT, 1, 1 }, /* BITSPERSAMPLE */ - { 0x103, IFD_LONG, 1, 1 }, /* COMPRESSION */ + { 0x103, IFD_SHORT, 1, 1 }, /* COMPRESSION: XP doesn't accept IFD_LONG here */ { 0x106, IFD_SHORT, 1, 1 }, /* PHOTOMETRIC */ { 0x111, IFD_LONG, 1, FIELD_OFFSET(struct tiff_data, pixel_data) }, /* STRIPOFFSETS */ { 0x115, IFD_SHORT, 1, 1 }, /* SAMPLESPERPIXEL */ @@ -3065,7 +3065,7 @@ static void test_tiff_properties(void) { PropertyTagTypeLong, 0x100, 4, { 1 } }, { PropertyTagTypeLong, 0x101, 4, { 1 } }, { PropertyTagTypeShort, 0x102, 2, { 1 } }, - { PropertyTagTypeLong, 0x103, 4, { 1 } }, + { PropertyTagTypeShort, 0x103, 2, { 1 } }, { PropertyTagTypeShort, 0x106, 2, { 1 } }, { PropertyTagTypeLong, 0x111, 4, { 0x44,0x02 } }, { PropertyTagTypeShort, 0x115, 2, { 1 } },
1
0
0
0
← Newer
1
...
58
59
60
61
62
63
64
...
96
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Results per page:
10
25
50
100
200