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
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
July 2012
----- 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
712 discussions
Start a n
N
ew thread
Matteo Bruni : d3dcompiler: Variables and functions can' t have the same name.
by Alexandre Julliard
17 Jul '12
17 Jul '12
Module: wine Branch: master Commit: 1252930bc0a2b12604bc8e5ae350e985b36e6514 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1252930bc0a2b12604bc8e5ae…
Author: Matteo Bruni <mbruni(a)codeweavers.com> Date: Mon Jul 16 20:39:21 2012 +0200 d3dcompiler: Variables and functions can't have the same name. --- dlls/d3dcompiler_43/hlsl.y | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y index b421402..eedf357 100644 --- a/dlls/d3dcompiler_43/hlsl.y +++ b/dlls/d3dcompiler_43/hlsl.y @@ -132,8 +132,17 @@ static BOOL declare_variable(struct hlsl_ir_var *decl, BOOL local) "modifier '%s' invalid for local variables", debug_modifiers(invalid)); } } + else + { + if (find_function(decl->name)) + { + hlsl_report_message(decl->node.loc.file, decl->node.loc.line, decl->node.loc.col, HLSL_LEVEL_ERROR, + "redefinition of '%s'", decl->name); + return FALSE; + } + } ret = add_declaration(hlsl_ctx.cur_scope, decl, local); - if (ret == FALSE) + if (!ret) { struct hlsl_ir_var *old = get_variable(hlsl_ctx.cur_scope, decl->name); @@ -381,6 +390,13 @@ func_declaration: func_prototype compound_statement func_prototype: var_modifiers type var_identifier '(' parameters ')' semantic { + if (get_variable(hlsl_ctx.globals, $3)) + { + hlsl_report_message(hlsl_ctx.source_file, @3.first_line, @3.first_column, + HLSL_LEVEL_ERROR, "redefinition of '%s'\n", $3); + return 1; + } + $$ = new_func_decl($3, $2, $5); if (!$$) {
1
0
0
0
Matteo Bruni : d3dcompiler: Pass the complete location to add_func_parameter().
by Alexandre Julliard
17 Jul '12
17 Jul '12
Module: wine Branch: master Commit: 7ebab8c4f75cffb64e2d31d5a270da42666d4356 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7ebab8c4f75cffb64e2d31d5a…
Author: Matteo Bruni <mbruni(a)codeweavers.com> Date: Mon Jul 16 20:39:20 2012 +0200 d3dcompiler: Pass the complete location to add_func_parameter(). --- dlls/d3dcompiler_43/d3dcompiler_private.h | 3 ++- dlls/d3dcompiler_43/hlsl.y | 15 ++++++++++----- dlls/d3dcompiler_43/utils.c | 4 ++-- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/dlls/d3dcompiler_43/d3dcompiler_private.h b/dlls/d3dcompiler_43/d3dcompiler_private.h index 194ed25..21ed57e 100644 --- a/dlls/d3dcompiler_43/d3dcompiler_private.h +++ b/dlls/d3dcompiler_43/d3dcompiler_private.h @@ -882,7 +882,8 @@ static inline struct hlsl_ir_constructor *constructor_from_node(const struct hls BOOL add_declaration(struct hlsl_scope *scope, struct hlsl_ir_var *decl, BOOL local_var) DECLSPEC_HIDDEN; struct hlsl_ir_var *get_variable(struct hlsl_scope *scope, const char *name) DECLSPEC_HIDDEN; void free_declaration(struct hlsl_ir_var *decl) DECLSPEC_HIDDEN; -BOOL add_func_parameter(struct list *list, struct parse_parameter *param, unsigned int line) DECLSPEC_HIDDEN; +BOOL add_func_parameter(struct list *list, struct parse_parameter *param, + const struct source_location *loc) DECLSPEC_HIDDEN; struct hlsl_type *new_hlsl_type(const char *name, enum hlsl_type_class type_class, enum hlsl_base_type base_type, unsigned dimx, unsigned dimy) DECLSPEC_HIDDEN; struct hlsl_type *new_array_type(struct hlsl_type *basic_type, unsigned int array_size) DECLSPEC_HIDDEN; diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y index f7f62fe..b421402 100644 --- a/dlls/d3dcompiler_43/hlsl.y +++ b/dlls/d3dcompiler_43/hlsl.y @@ -430,9 +430,12 @@ parameters: scope_start param_list: parameter { + struct source_location loc; + $$ = d3dcompiler_alloc(sizeof(*$$)); list_init($$); - if (!add_func_parameter($$, &$1, hlsl_ctx.line_no)) + set_location(&loc, &@1); + if (!add_func_parameter($$, &$1, &loc)) { ERR("Error adding function parameter %s.\n", $1.name); set_parse_status(&hlsl_ctx.status, PARSE_ERR); @@ -441,12 +444,14 @@ param_list: parameter } | param_list ',' parameter { + struct source_location loc; + $$ = $1; - if (!add_func_parameter($$, &$3, hlsl_ctx.line_no)) + set_location(&loc, &@3); + if (!add_func_parameter($$, &$3, &loc)) { - hlsl_message("Line %u: duplicate parameter %s.\n", - hlsl_ctx.line_no, $3.name); - set_parse_status(&hlsl_ctx.status, PARSE_ERR); + hlsl_report_message(loc.file, loc.line, loc.col, HLSL_LEVEL_ERROR, + "duplicate parameter %s", $3.name); return 1; } } diff --git a/dlls/d3dcompiler_43/utils.c b/dlls/d3dcompiler_43/utils.c index c4dd2e8..ce95bb5 100644 --- a/dlls/d3dcompiler_43/utils.c +++ b/dlls/d3dcompiler_43/utils.c @@ -805,7 +805,7 @@ void free_declaration(struct hlsl_ir_var *decl) d3dcompiler_free(decl); } -BOOL add_func_parameter(struct list *list, struct parse_parameter *param, unsigned int line) +BOOL add_func_parameter(struct list *list, struct parse_parameter *param, const struct source_location *loc) { struct hlsl_ir_var *decl = d3dcompiler_alloc(sizeof(*decl)); @@ -816,7 +816,7 @@ BOOL add_func_parameter(struct list *list, struct parse_parameter *param, unsign } decl->node.type = HLSL_IR_VAR; decl->node.data_type = param->type; - decl->node.loc.line = line; + decl->node.loc = *loc; decl->name = param->name; decl->semantic = param->semantic; decl->modifiers = param->modifiers;
1
0
0
0
Matteo Bruni : d3dcompiler: Store location information in constants, variable dereferences and constructors.
by Alexandre Julliard
17 Jul '12
17 Jul '12
Module: wine Branch: master Commit: be350b0bb39ee1f2bc76237cbacf7ea8d788752e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=be350b0bb39ee1f2bc76237cb…
Author: Matteo Bruni <mbruni(a)codeweavers.com> Date: Mon Jul 16 20:39:19 2012 +0200 d3dcompiler: Store location information in constants, variable dereferences and constructors. --- dlls/d3dcompiler_43/hlsl.y | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y index cf0c7b5..f7f62fe 100644 --- a/dlls/d3dcompiler_43/hlsl.y +++ b/dlls/d3dcompiler_43/hlsl.y @@ -799,6 +799,7 @@ primary_expr: C_FLOAT return -1; } c->node.type = HLSL_IR_CONSTANT; + set_location(&c->node.loc, &yylloc); c->node.data_type = new_hlsl_type("float", HLSL_CLASS_SCALAR, HLSL_TYPE_FLOAT, 1, 1); c->v.value.f[0] = $1; $$ = &c->node; @@ -812,6 +813,7 @@ primary_expr: C_FLOAT return -1; } c->node.type = HLSL_IR_CONSTANT; + set_location(&c->node.loc, &yylloc); c->node.data_type = new_hlsl_type("int", HLSL_CLASS_SCALAR, HLSL_TYPE_INT, 1, 1); c->v.value.i[0] = $1; $$ = &c->node; @@ -825,6 +827,7 @@ primary_expr: C_FLOAT return -1; } c->node.type = HLSL_IR_CONSTANT; + set_location(&c->node.loc, &yylloc); c->node.data_type = new_hlsl_type("bool", HLSL_CLASS_SCALAR, HLSL_TYPE_BOOL, 1, 1); c->v.value.b[0] = $1; $$ = &c->node; @@ -832,7 +835,13 @@ primary_expr: C_FLOAT | variable { struct hlsl_ir_deref *deref = new_var_deref($1); - $$ = deref ? &deref->node : NULL; + if (deref) + { + $$ = &deref->node; + set_location(&$$->loc, &@1); + } + else + $$ = NULL; } | '(' expr ')' { @@ -888,6 +897,7 @@ postfix_expr: primary_expr constructor = d3dcompiler_alloc(sizeof(*constructor)); constructor->node.type = HLSL_IR_CONSTRUCTOR; + set_location(&constructor->node.loc, &@3); constructor->node.data_type = $2; constructor->arguments = $4;
1
0
0
0
Alexandre Julliard : opengl32/tests: Run more tests against the GDI renderer.
by Alexandre Julliard
17 Jul '12
17 Jul '12
Module: wine Branch: master Commit: 55f9e9ff4ff27523355ef1e1579849989d8f9f40 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=55f9e9ff4ff27523355ef1e15…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 17 00:22:24 2012 +0200 opengl32/tests: Run more tests against the GDI renderer. --- dlls/opengl32/tests/opengl.c | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c index 77b4cf5..53e9863 100644 --- a/dlls/opengl32/tests/opengl.c +++ b/dlls/opengl32/tests/opengl.c @@ -388,7 +388,6 @@ static void test_makecurrent(HDC winhdc) { BOOL ret; HGLRC hglrc; - DWORD error; hglrc = wglCreateContext(winhdc); ok( hglrc != 0, "wglCreateContext failed\n" ); @@ -411,9 +410,9 @@ static void test_makecurrent(HDC winhdc) SetLastError( 0xdeadbeef ); ret = wglMakeCurrent( NULL, NULL ); - ok( !ret, "wglMakeCurrent succeeded\n" ); - error = GetLastError(); - ok( error == ERROR_INVALID_HANDLE, "Expected ERROR_INVALID_HANDLE, got error=%x\n", error); + ok( !ret || broken(ret) /* nt4 */, "wglMakeCurrent succeeded\n" ); + if (!ret) ok( GetLastError() == ERROR_INVALID_HANDLE, + "Expected ERROR_INVALID_HANDLE, got error=%x\n", GetLastError() ); ret = wglMakeCurrent( winhdc, NULL ); ok( ret, "wglMakeCurrent failed\n" ); @@ -428,9 +427,9 @@ static void test_makecurrent(HDC winhdc) SetLastError( 0xdeadbeef ); ret = wglMakeCurrent( NULL, NULL ); - ok( !ret, "wglMakeCurrent succeeded\n" ); - error = GetLastError(); - ok( error == ERROR_INVALID_HANDLE, "Expected ERROR_INVALID_HANDLE, got error=%x\n", error); + ok( !ret || broken(ret) /* nt4 */, "wglMakeCurrent succeeded\n" ); + if (!ret) ok( GetLastError() == ERROR_INVALID_HANDLE, + "Expected ERROR_INVALID_HANDLE, got error=%x\n", GetLastError() ); ret = wglMakeCurrent( winhdc, hglrc ); ok( ret, "wglMakeCurrent failed\n" ); @@ -808,6 +807,7 @@ static void test_getprocaddress(HDC hdc) if (!gl_extension_supported(extensions, "GL_ARB_multitexture")) { skip("skipping test because lack of GL_ARB_multitexture support\n"); + return; } func = wglGetProcAddress("glActiveTextureARB"); @@ -1478,7 +1478,10 @@ START_TEST(opengl) * any WGL call :( On Wine this would work but not on real Windows because there can be different implementations (software, ICD, MCD). */ init_functions(); + test_getprocaddress(hdc); test_deletecontext(hwnd, hdc); + test_makecurrent(hdc); + /* The lack of wglGetExtensionsStringARB in general means broken software rendering or the lack of decent OpenGL support, skip tests in such cases */ if (!pwglGetExtensionsStringARB) { @@ -1486,8 +1489,6 @@ START_TEST(opengl) return; } - test_getprocaddress(hdc); - test_makecurrent(hdc); test_setpixelformat(hdc); test_destroy(hdc); test_sharelists(hdc);
1
0
0
0
Lucas Zawacki : joy.cpl: Correct joystick testing thread behavior.
by Alexandre Julliard
16 Jul '12
16 Jul '12
Module: wine Branch: master Commit: 6e60adbf5b4d2f02475e231553149c2f9cc97acf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6e60adbf5b4d2f02475e23155…
Author: Lucas Zawacki <lfzawacki(a)gmail.com> Date: Mon Jul 16 14:05:39 2012 -0300 joy.cpl: Correct joystick testing thread behavior. --- dlls/joy.cpl/main.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/joy.cpl/main.c b/dlls/joy.cpl/main.c index eb8f982..e9b3a72 100644 --- a/dlls/joy.cpl/main.c +++ b/dlls/joy.cpl/main.c @@ -424,9 +424,11 @@ static INT_PTR CALLBACK test_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM } break; - case PSN_RESET: + case PSN_RESET: /* intentional fall-through */ + case PSN_KILLACTIVE: /* Stop input thread */ data->stop = TRUE; + MsgWaitForMultipleObjects(1, &thread, FALSE, INFINITE, 0); CloseHandle(thread); break; }
1
0
0
0
Hans Leidekker : msi/tests: Mark some test results as broken.
by Alexandre Julliard
16 Jul '12
16 Jul '12
Module: wine Branch: master Commit: cbd83d0307d601e3a0689e0e8b836b3b6afb89ca URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cbd83d0307d601e3a0689e0e8…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Mon Jul 16 18:40:40 2012 +0200 msi/tests: Mark some test results as broken. --- dlls/msi/tests/install.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index e41bef4..9508ea8 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -6720,7 +6720,7 @@ static void test_mixed_package(void) ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); res = RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Wine\\msitest", 0, KEY_ALL_ACCESS|KEY_WOW64_32KEY, &hkey); - ok(res == ERROR_FILE_NOT_FOUND, "32-bit component key not removed\n"); + ok(res == ERROR_FILE_NOT_FOUND || broken(!res), "32-bit component key not removed\n"); res = RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Wine\\msitest", 0, KEY_ALL_ACCESS|KEY_WOW64_64KEY, &hkey); ok(res == ERROR_FILE_NOT_FOUND, "64-bit component key not removed\n"); @@ -6747,7 +6747,7 @@ static void test_mixed_package(void) ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r); res = RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Wine\\msitest", 0, KEY_ALL_ACCESS|KEY_WOW64_32KEY, &hkey); - ok(res == ERROR_FILE_NOT_FOUND, "32-bit component key not removed\n"); + ok(res == ERROR_FILE_NOT_FOUND || broken(!res), "32-bit component key not removed\n"); res = RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Wine\\msitest", 0, KEY_ALL_ACCESS|KEY_WOW64_64KEY, &hkey); ok(res == ERROR_FILE_NOT_FOUND, "64-bit component key not removed\n");
1
0
0
0
Dmitry Timoshkov : gdiplus: Fix palette flags for a not indexed 1-bpp image .
by Alexandre Julliard
16 Jul '12
16 Jul '12
Module: wine Branch: master Commit: ebf31c0ac62c6de409af782df1f673583c5b129d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ebf31c0ac62c6de409af782df…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Fri Jul 13 11:50:05 2012 +0900 gdiplus: Fix palette flags for a not indexed 1-bpp image. --- dlls/gdiplus/image.c | 3 +++ dlls/gdiplus/tests/image.c | 1 - 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 18df589..f7bfd1a 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -2983,6 +2983,7 @@ static GpStatus decode_image_wic(IStream* stream, REFCLSID clsid, UINT active_fr gdip_format = PixelFormat32bppARGB; IWICBitmapSource_Release(bmp_source); } + TRACE("%s => %#x\n", wine_dbgstr_guid(&wic_format), gdip_format); } if (SUCCEEDED(hr)) /* got source */ @@ -3063,6 +3064,8 @@ end: bitmap->image.frame_count = frame_count; bitmap->image.current_frame = active_frame; bitmap->image.stream = stream; + if (IsEqualGUID(&wic_format, &GUID_WICPixelFormatBlackWhite)) + bitmap->image.palette_flags = 0; /* Pin the source stream */ IStream_AddRef(stream); } diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index a735172..69970ec 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -3340,7 +3340,6 @@ static void test_tiff_palette(void) status = GdipGetImagePalette(image, &palette.pal, size); expect(Ok, status); -todo_wine expect(0, palette.pal.Flags); expect(2, palette.pal.Count); if (palette.pal.Count == 2)
1
0
0
0
Dmitry Timoshkov : gdiplus: Make sure that 1bpp bitmap images get loaded in native format.
by Alexandre Julliard
16 Jul '12
16 Jul '12
Module: wine Branch: master Commit: eca107412c581c28dc198d0808949bc999197872 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eca107412c581c28dc198d080…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Fri Jul 13 11:47:57 2012 +0900 gdiplus: Make sure that 1bpp bitmap images get loaded in native format. --- dlls/gdiplus/image.c | 4 ++++ dlls/gdiplus/tests/image.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 9b36280..18df589 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -2908,6 +2908,8 @@ GpStatus WINGDIPAPI GdipLoadImageFromFileICM(GDIPCONST WCHAR* filename,GpImage * } static const WICPixelFormatGUID * const wic_pixel_formats[] = { + &GUID_WICPixelFormatBlackWhite, + &GUID_WICPixelFormat1bppIndexed, &GUID_WICPixelFormat16bppBGR555, &GUID_WICPixelFormat24bppBGR, &GUID_WICPixelFormat32bppBGR, @@ -2917,6 +2919,8 @@ static const WICPixelFormatGUID * const wic_pixel_formats[] = { }; static const PixelFormat wic_gdip_formats[] = { + PixelFormat1bppIndexed, + PixelFormat1bppIndexed, PixelFormat16bppRGB555, PixelFormat24bppRGB, PixelFormat32bppRGB, diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index 1f5ace1..a735172 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -3326,7 +3326,6 @@ static void test_tiff_palette(void) status = GdipGetImagePixelFormat(image, &format); expect(Ok, status); -todo_wine ok(format == PixelFormat1bppIndexed, "expected PixelFormat1bppIndexed, got %#x\n", format); status = GdipGetImagePaletteSize(image, &size); @@ -3337,13 +3336,12 @@ todo_wine GdipDisposeImage(image); return; } -todo_wine expect(sizeof(ColorPalette) + sizeof(ARGB), size); status = GdipGetImagePalette(image, &palette.pal, size); expect(Ok, status); - expect(0, palette.pal.Flags); todo_wine + expect(0, palette.pal.Flags); expect(2, palette.pal.Count); if (palette.pal.Count == 2) {
1
0
0
0
Bruno Jesus : user32/tests: Update DlgDirList tests.
by Alexandre Julliard
16 Jul '12
16 Jul '12
Module: wine Branch: master Commit: 81cbf29ef3f9a0164e861fdb908bb56e4edba22b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=81cbf29ef3f9a0164e861fdb9…
Author: Bruno Jesus <00cpxxx(a)gmail.com> Date: Thu Jul 12 20:41:16 2012 -0300 user32/tests: Update DlgDirList tests. Based on original patch from Christian Lupien. --- dlls/user32/tests/listbox.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c index 1d6e8a3..4be7604 100644 --- a/dlls/user32/tests/listbox.c +++ b/dlls/user32/tests/listbox.c @@ -1335,6 +1335,27 @@ static void test_listbox_dlgdir(void) ok (itemCount == itemCount_justDrives + itemCount_allDirs, "DlgDirList() incorrectly filled the listbox!\n"); + /* Test behavior when loading folders from root with and without wildcard */ + strcpy(pathBuffer, "C:\\"); + res = DlgDirList(hWnd, pathBuffer, ID_TEST_LISTBOX, 0, DDL_DIRECTORY | DDL_EXCLUSIVE); + ok(res || broken(!res) /* NT4/W2K */, "DlgDirList failed to list C:\\ folders\n"); + todo_wine ok(!strcmp(pathBuffer, "*") || broken(!res) /* NT4/W2K */, + "DlgDirList set the invalid path spec '%s', expected '*'\n", pathBuffer); + + strcpy(pathBuffer, "C:\\*"); + res = DlgDirList(hWnd, pathBuffer, ID_TEST_LISTBOX, 0, DDL_DIRECTORY | DDL_EXCLUSIVE); + ok(res || broken(!res) /* NT4/W2K */, "DlgDirList failed to list C:\\* folders\n"); + ok(!strcmp(pathBuffer, "*") || broken(!res) /* NT4/W2K */, + "DlgDirList set the invalid path spec '%s', expected '*'\n", pathBuffer); + + /* Try loading files from an invalid folder */ + SetLastError(0xdeadbeef); + strcpy(pathBuffer, "C:\\INVALID$$DIR"); + res = DlgDirList(hWnd, pathBuffer, ID_TEST_LISTBOX, 0, DDL_DIRECTORY | DDL_EXCLUSIVE); + todo_wine ok(!res, "DlgDirList should have failed with 0 but %d was returned\n", res); + todo_wine ok(GetLastError() == ERROR_NO_WILDCARD_CHARACTERS, + "GetLastError should return 0x589, got 0x%X\n",GetLastError()); + /* Now test DlgDirSelectEx() in normal operation */ /* Fill with everything - drives, directory and all plain files. */
1
0
0
0
Erich Hoover : hhctrl.ocx: Permit WS_CHILD help windows.
by Alexandre Julliard
16 Jul '12
16 Jul '12
Module: wine Branch: master Commit: 2686b9b5880e2b9b27c131dd93d1c85743386253 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2686b9b5880e2b9b27c131dd9…
Author: Erich Hoover <ehoover(a)mines.edu> Date: Thu Jul 12 10:25:07 2012 -0600 hhctrl.ocx: Permit WS_CHILD help windows. --- dlls/hhctrl.ocx/help.c | 16 ++++++++++++---- dlls/hhctrl.ocx/hhctrl.c | 4 ++-- dlls/hhctrl.ocx/hhctrl.h | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c index 2f2fba1..ed5528c 100644 --- a/dlls/hhctrl.ocx/help.c +++ b/dlls/hhctrl.ocx/help.c @@ -1585,7 +1585,7 @@ static LRESULT CALLBACK Help_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPA static BOOL HH_CreateHelpWindow(HHInfo *info) { - HWND hWnd; + HWND hWnd, parent = 0; RECT winPos = info->WinType.rcWindowPos; WNDCLASSEXW wcex; DWORD dwStyles, dwExStyles; @@ -1613,7 +1613,11 @@ static BOOL HH_CreateHelpWindow(HHInfo *info) /* Read in window parameters if available */ if (info->WinType.fsValidMembers & HHWIN_PARAM_STYLES) - dwStyles = info->WinType.dwStyles | WS_OVERLAPPEDWINDOW; + { + dwStyles = info->WinType.dwStyles; + if (!(info->WinType.dwStyles & WS_CHILD)) + dwStyles |= WS_OVERLAPPEDWINDOW; + } else dwStyles = WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN; @@ -1655,8 +1659,11 @@ static BOOL HH_CreateHelpWindow(HHInfo *info) caption = info->WinType.pszCaption; if (!*caption) caption = info->pCHMInfo->defTitle; + if (info->WinType.dwStyles & WS_CHILD) + parent = info->WinType.hwndCaller; + hWnd = CreateWindowExW(dwExStyles, windowClassW, caption, - dwStyles, x, y, width, height, NULL, NULL, hhctrl_hinstance, NULL); + dwStyles, x, y, width, height, parent, NULL, hhctrl_hinstance, NULL); if (!hWnd) return FALSE; @@ -1773,7 +1780,7 @@ void ReleaseHelpViewer(HHInfo *info) OleUninitialize(); } -HHInfo *CreateHelpViewer(LPCWSTR filename) +HHInfo *CreateHelpViewer(LPCWSTR filename, HWND caller) { HHInfo *info = heap_alloc_zero(sizeof(HHInfo)); int i; @@ -1796,6 +1803,7 @@ HHInfo *CreateHelpViewer(LPCWSTR filename) ReleaseHelpViewer(info); return NULL; } + info->WinType.hwndCaller = caller; if(!CreateViewer(info)) { ReleaseHelpViewer(info); diff --git a/dlls/hhctrl.ocx/hhctrl.c b/dlls/hhctrl.ocx/hhctrl.c index a5e7e37..bda435a 100644 --- a/dlls/hhctrl.ocx/hhctrl.c +++ b/dlls/hhctrl.ocx/hhctrl.c @@ -181,7 +181,7 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat } index = default_index; - info = CreateHelpViewer(fullname); + info = CreateHelpViewer(fullname, caller); if(!info) { heap_free(default_index); @@ -253,7 +253,7 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat return 0; } - info = CreateHelpViewer(fullname); + info = CreateHelpViewer(fullname, caller); if(!info) return NULL; diff --git a/dlls/hhctrl.ocx/hhctrl.h b/dlls/hhctrl.ocx/hhctrl.h index f03d476..bfc6618 100644 --- a/dlls/hhctrl.ocx/hhctrl.h +++ b/dlls/hhctrl.ocx/hhctrl.h @@ -194,7 +194,7 @@ IStream *GetChmStream(CHMInfo*,LPCWSTR,ChmPath*) DECLSPEC_HIDDEN; LPWSTR FindContextAlias(CHMInfo*,DWORD) DECLSPEC_HIDDEN; WCHAR *GetDocumentTitle(CHMInfo*,LPCWSTR) DECLSPEC_HIDDEN; -HHInfo *CreateHelpViewer(LPCWSTR) DECLSPEC_HIDDEN; +HHInfo *CreateHelpViewer(LPCWSTR,HWND) DECLSPEC_HIDDEN; void ReleaseHelpViewer(HHInfo*) DECLSPEC_HIDDEN; BOOL NavigateToUrl(HHInfo*,LPCWSTR) DECLSPEC_HIDDEN; BOOL NavigateToChm(HHInfo*,LPCWSTR,LPCWSTR) DECLSPEC_HIDDEN;
1
0
0
0
← Newer
1
...
36
37
38
39
40
41
42
...
72
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
Results per page:
10
25
50
100
200