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
June 2009
----- 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
5 participants
1115 discussions
Start a n
N
ew thread
Paul Chitescu : shell32: Add missing Romanian translation for IDS_SHLEXEC_NOASSOC.
by Alexandre Julliard
24 Jun '09
24 Jun '09
Module: wine Branch: master Commit: b647b56984f22837ddfe127814f8aca15779ceca URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b647b56984f22837ddfe12781…
Author: Paul Chitescu <paulc(a)voip.null.ro> Date: Wed Jun 24 11:55:37 2009 +0300 shell32: Add missing Romanian translation for IDS_SHLEXEC_NOASSOC. --- dlls/shell32/shell32_Ro.rc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/shell32/shell32_Ro.rc b/dlls/shell32/shell32_Ro.rc index 48a9259..cdec0a6 100644 --- a/dlls/shell32/shell32_Ro.rc +++ b/dlls/shell32/shell32_Ro.rc @@ -284,6 +284,8 @@ STRINGTABLE IDS_CPANEL_TITLE "Panoul de control al Wine" IDS_CPANEL_NAME "Nume" IDS_CPANEL_DESCRIPTION "Descriere" + + IDS_SHLEXEC_NOASSOC "Nici un program Windows nu este configurat să deschidă fișiere de acest tip." } STRINGTABLE
1
0
0
0
Henri Verbeet : wined3d: Allow the existence of other shader types in get_loop_control_const().
by Alexandre Julliard
24 Jun '09
24 Jun '09
Module: wine Branch: master Commit: f98c6e3cff7a6ef06295b19b8e35bb6aa57e7312 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f98c6e3cff7a6ef06295b19b8…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jun 24 10:54:19 2009 +0200 wined3d: Allow the existence of other shader types in get_loop_control_const(). --- dlls/wined3d/arb_program_shader.c | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index df2fa52..b30d3cc 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -4362,7 +4362,6 @@ static inline BOOL get_bool_const(const struct wined3d_shader_instruction *ins, static void get_loop_control_const(const struct wined3d_shader_instruction *ins, IWineD3DBaseShaderImpl *This, UINT idx, struct loop_control *loop_control) { - BOOL vshader = shader_is_vshader_version(This->baseShader.reg_maps.shader_version.type); struct shader_arb_ctx_priv *priv = ins->ctx->backend_data; /* Integer constants can either be a local constant, or they can be stored in the shader @@ -4389,23 +4388,26 @@ static void get_loop_control_const(const struct wined3d_shader_instruction *ins, loop_control->step = 0; return; } - else + + switch (This->baseShader.reg_maps.shader_version.type) { - if(vshader) - { + case WINED3D_SHADER_TYPE_VERTEX: /* Count and aL start value are unsigned */ loop_control->count = priv->cur_vs_args->loop_ctrl[idx][0]; loop_control->start = priv->cur_vs_args->loop_ctrl[idx][1]; /* Step is signed. */ loop_control->step = ((char)priv->cur_vs_args->loop_ctrl[idx][2]); - } - else - { + break; + + case WINED3D_SHADER_TYPE_PIXEL: loop_control->count = priv->cur_ps_args->loop_ctrl[idx][0]; loop_control->start = priv->cur_ps_args->loop_ctrl[idx][1]; loop_control->step = ((char)priv->cur_ps_args->loop_ctrl[idx][2]); - } - return; + break; + + default: + FIXME("Unhandled shader type %#x.\n", This->baseShader.reg_maps.shader_version.type); + break; } }
1
0
0
0
Henri Verbeet : wined3d: Eliminate a redundant local variable in get_loop_control_const().
by Alexandre Julliard
24 Jun '09
24 Jun '09
Module: wine Branch: master Commit: 943ed4e1e969f40a31dc39e4cb9dc3232e22efb8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=943ed4e1e969f40a31dc39e4c…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jun 24 10:54:18 2009 +0200 wined3d: Eliminate a redundant local variable in get_loop_control_const(). --- dlls/wined3d/arb_program_shader.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index a420abf..df2fa52 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -4363,15 +4363,14 @@ static void get_loop_control_const(const struct wined3d_shader_instruction *ins, IWineD3DBaseShaderImpl *This, UINT idx, struct loop_control *loop_control) { BOOL vshader = shader_is_vshader_version(This->baseShader.reg_maps.shader_version.type); - WORD flag = (1 << idx); - const local_constant *constant; struct shader_arb_ctx_priv *priv = ins->ctx->backend_data; /* Integer constants can either be a local constant, or they can be stored in the shader - * type specific compile args - */ - if(This->baseShader.reg_maps.local_int_consts & flag) + * type specific compile args. */ + if (This->baseShader.reg_maps.local_int_consts & (1 << idx)) { + const local_constant *constant; + LIST_FOR_EACH_ENTRY(constant, &This->baseShader.constantsI, local_constant, entry) { if (constant->idx == idx)
1
0
0
0
Henri Verbeet : wined3d: Avoid a redundant copy.
by Alexandre Julliard
24 Jun '09
24 Jun '09
Module: wine Branch: master Commit: aec6d319fa805f5b789ea05e7eac1efa124bbc3b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aec6d319fa805f5b789ea05e7…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jun 24 10:54:17 2009 +0200 wined3d: Avoid a redundant copy. --- dlls/wined3d/arb_program_shader.c | 37 +++++++++++++++++-------------------- 1 files changed, 17 insertions(+), 20 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index a948069..a420abf 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -4359,7 +4359,8 @@ static inline BOOL get_bool_const(const struct wined3d_shader_instruction *ins, } } -static inline void get_int_const(const struct wined3d_shader_instruction *ins, IWineD3DBaseShaderImpl *This, DWORD idx, int *ret) +static void get_loop_control_const(const struct wined3d_shader_instruction *ins, + IWineD3DBaseShaderImpl *This, UINT idx, struct loop_control *loop_control) { BOOL vshader = shader_is_vshader_version(This->baseShader.reg_maps.shader_version.type); WORD flag = (1 << idx); @@ -4375,18 +4376,18 @@ static inline void get_int_const(const struct wined3d_shader_instruction *ins, I { if (constant->idx == idx) { - ret[0] = constant->value[0]; - ret[1] = constant->value[1]; - /* Step / stride is signed */ - ret[2] = (int) constant->value[2]; + loop_control->count = constant->value[0]; + loop_control->start = constant->value[1]; + /* Step is signed. */ + loop_control->step = (int)constant->value[2]; return; } } /* If this happens the flag was set incorrectly */ ERR("Local constant not found\n"); - ret[0] = 0; - ret[1] = 0; - ret[2] = 0; + loop_control->count = 0; + loop_control->start = 0; + loop_control->step = 0; return; } else @@ -4394,16 +4395,16 @@ static inline void get_int_const(const struct wined3d_shader_instruction *ins, I if(vshader) { /* Count and aL start value are unsigned */ - ret[0] = priv->cur_vs_args->loop_ctrl[idx][0]; - ret[1] = priv->cur_vs_args->loop_ctrl[idx][1]; - /* The step/stride is signed */ - ret[2] = ((char) priv->cur_vs_args->loop_ctrl[idx][2]); + loop_control->count = priv->cur_vs_args->loop_ctrl[idx][0]; + loop_control->start = priv->cur_vs_args->loop_ctrl[idx][1]; + /* Step is signed. */ + loop_control->step = ((char)priv->cur_vs_args->loop_ctrl[idx][2]); } else { - ret[0] = priv->cur_ps_args->loop_ctrl[idx][0]; - ret[1] = priv->cur_ps_args->loop_ctrl[idx][1]; - ret[2] = ((char) priv->cur_ps_args->loop_ctrl[idx][2]); + loop_control->count = priv->cur_ps_args->loop_ctrl[idx][0]; + loop_control->start = priv->cur_ps_args->loop_ctrl[idx][1]; + loop_control->step = ((char)priv->cur_ps_args->loop_ctrl[idx][2]); } return; } @@ -4524,14 +4525,10 @@ static void shader_arb_handle_instruction(const struct wined3d_shader_instructio if(!priv->recording) { - int control_values[3]; - get_int_const(ins, This, ins->src[0].reg.idx, control_values); list_init(&priv->record); priv->recording = TRUE; control_frame->outer_loop = TRUE; - control_frame->loop_control.count = control_values[0]; - control_frame->loop_control.start = control_values[1]; - control_frame->loop_control.step = control_values[2]; + get_loop_control_const(ins, This, ins->src[0].reg.idx, &control_frame->loop_control); return; /* Instruction is handled */ } /* Record this loop in the outer loop's recording */
1
0
0
0
Henri Verbeet : wined3d: Use a proper structure for "loop_control".
by Alexandre Julliard
24 Jun '09
24 Jun '09
Module: wine Branch: master Commit: fd8ebebe56550d610e4d44a8886b0f652f2ce7aa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fd8ebebe56550d610e4d44a88…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jun 24 10:54:16 2009 +0200 wined3d: Use a proper structure for "loop_control". --- dlls/wined3d/arb_program_shader.c | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 0d4002b..a948069 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -85,6 +85,14 @@ static inline BOOL use_nv_clip(const WineD3D_GL_Info *gl_info) #define ARB_SHADER_PRIVCONST_POS ARB_SHADER_PRIVCONST_BASE + 0 /* ARB_program_shader private data */ + +struct loop_control +{ + unsigned int count; + unsigned int start; + int step; +}; + struct control_frame { struct list entry; @@ -102,7 +110,7 @@ struct control_frame unsigned int loop_no; unsigned int ifc_no; }; - DWORD loop_control[3]; + struct loop_control loop_control; BOOL had_else; }; @@ -4521,9 +4529,9 @@ static void shader_arb_handle_instruction(const struct wined3d_shader_instructio list_init(&priv->record); priv->recording = TRUE; control_frame->outer_loop = TRUE; - control_frame->loop_control[0] = control_values[0]; - control_frame->loop_control[1] = control_values[1]; - control_frame->loop_control[2] = control_values[2]; + control_frame->loop_control.count = control_values[0]; + control_frame->loop_control.start = control_values[1]; + control_frame->loop_control.step = control_values[2]; return; /* Instruction is handled */ } /* Record this loop in the outer loop's recording */ @@ -4559,17 +4567,17 @@ static void shader_arb_handle_instruction(const struct wined3d_shader_instructio if(ins->handler_idx == WINED3DSIH_ENDLOOP) { - shader_addline(buffer, "#unrolling loop: %d iterations, aL=%d, inc %d\n", - control_frame->loop_control[0], control_frame->loop_control[1], - control_frame->loop_control[2]); - aL = control_frame->loop_control[1]; + shader_addline(buffer, "#unrolling loop: %u iterations, aL=%u, inc %d\n", + control_frame->loop_control.count, control_frame->loop_control.start, + control_frame->loop_control.step); + aL = control_frame->loop_control.start; } else { - shader_addline(buffer, "#unrolling rep: %d iterations\n", control_frame->loop_control[0]); + shader_addline(buffer, "#unrolling rep: %u iterations\n", control_frame->loop_control.count); } - for(iteration = 0; iteration < control_frame->loop_control[0]; iteration++) + for (iteration = 0; iteration < control_frame->loop_control.count; ++iteration) { struct recorded_instruction *rec_ins; if(ins->handler_idx == WINED3DSIH_ENDLOOP) @@ -4589,7 +4597,7 @@ static void shader_arb_handle_instruction(const struct wined3d_shader_instructio if(ins->handler_idx == WINED3DSIH_ENDLOOP) { - aL += control_frame->loop_control[2]; + aL += control_frame->loop_control.step; } } shader_addline(buffer, "#end loop/rep\n");
1
0
0
0
Henri Verbeet : wined3d: Add some missing GL locking documentation to arb_program_shader.c.
by Alexandre Julliard
24 Jun '09
24 Jun '09
Module: wine Branch: master Commit: 4caf43ddb767658f66b6528f9ae1ee2d7c6b4eb3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4caf43ddb767658f66b6528f9…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Jun 24 10:54:15 2009 +0200 wined3d: Add some missing GL locking documentation to arb_program_shader.c. --- dlls/wined3d/arb_program_shader.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 7094824..0d4002b 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -354,6 +354,7 @@ static void shader_arb_load_np2fixup_constants( /* not implemented */ } +/* GL locking is done by the caller. */ static inline void shader_arb_ps_local_constants(IWineD3DDeviceImpl* deviceImpl) { IWineD3DStateBlockImpl* stateBlock = deviceImpl->stateBlock; @@ -417,6 +418,7 @@ static inline void shader_arb_ps_local_constants(IWineD3DDeviceImpl* deviceImpl) checkGLcall("Load ps int consts\n"); } +/* GL locking is done by the caller. */ static inline void shader_arb_vs_local_constants(IWineD3DDeviceImpl* deviceImpl) { IWineD3DStateBlockImpl* stateBlock;
1
0
0
0
Aric Stewart : msctf/tests: Verify to make sure OnPopContext happens before context is removed from stack .
by Alexandre Julliard
24 Jun '09
24 Jun '09
Module: wine Branch: master Commit: a307c6fdc294d5e7c8775e0cbd193443b1537c1d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a307c6fdc294d5e7c8775e0cb…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Wed Jun 24 17:30:18 2009 +0900 msctf/tests: Verify to make sure OnPopContext happens before context is removed from stack. --- dlls/msctf/tests/inputprocessor.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c index b9f2469..4d94d3c 100644 --- a/dlls/msctf/tests/inputprocessor.c +++ b/dlls/msctf/tests/inputprocessor.c @@ -461,6 +461,20 @@ ITfContext *pic) static HRESULT WINAPI ThreadMgrEventSink_OnPopContext(ITfThreadMgrEventSink *iface, ITfContext *pic) { + HRESULT hr; + ITfDocumentMgr *docmgr; + ITfContext *test; + + hr = ITfContext_GetDocumentMgr(pic,&docmgr); + ok(SUCCEEDED(hr),"GetDocumenMgr failed\n"); + ITfDocumentMgr_Release(docmgr); + test = (ITfContext*)0xdeadbeef; + hr = ITfDocumentMgr_GetTop(docmgr,&test); + ok(SUCCEEDED(hr),"GetTop failed\n"); + ok(test == pic, "Wrong context is on top\n"); + if (test) + ITfContext_Release(test); + ok(test_OnPopContext == SINK_EXPECTED, "Unexpected OnPopContext sink\n"); test_OnPopContext = SINK_FIRED; return S_OK;
1
0
0
0
Aric Stewart : msctf: Context initialization happens before OnPushContext sink.
by Alexandre Julliard
24 Jun '09
24 Jun '09
Module: wine Branch: master Commit: e73b17d018318d0e257ceb8409c4f0e0209a6a1d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e73b17d018318d0e257ceb840…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Wed Jun 24 17:29:51 2009 +0900 msctf: Context initialization happens before OnPushContext sink. --- dlls/msctf/documentmgr.c | 2 +- dlls/msctf/tests/inputprocessor.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletions(-) diff --git a/dlls/msctf/documentmgr.c b/dlls/msctf/documentmgr.c index c7aa820..f5ea71f 100644 --- a/dlls/msctf/documentmgr.c +++ b/dlls/msctf/documentmgr.c @@ -145,8 +145,8 @@ static HRESULT WINAPI DocumentMgr_Push(ITfDocumentMgr *iface, ITfContext *pic) This->contextStack[1] = This->contextStack[0]; This->contextStack[0] = check; - ITfThreadMgrEventSink_OnPushContext(This->ThreadMgrSink,check); Context_Initialize(check, iface); + ITfThreadMgrEventSink_OnPushContext(This->ThreadMgrSink,check); return S_OK; } diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c index 61389cf..b9f2469 100644 --- a/dlls/msctf/tests/inputprocessor.c +++ b/dlls/msctf/tests/inputprocessor.c @@ -439,6 +439,20 @@ ITfDocumentMgr *pdimFocus, ITfDocumentMgr *pdimPrevFocus) static HRESULT WINAPI ThreadMgrEventSink_OnPushContext(ITfThreadMgrEventSink *iface, ITfContext *pic) { + HRESULT hr; + ITfDocumentMgr *docmgr; + ITfContext *test; + + hr = ITfContext_GetDocumentMgr(pic,&docmgr); + ok(SUCCEEDED(hr),"GetDocumenMgr failed\n"); + test = (ITfContext*)0xdeadbeef; + ITfDocumentMgr_Release(docmgr); + hr = ITfDocumentMgr_GetTop(docmgr,&test); + ok(SUCCEEDED(hr),"GetTop failed\n"); + ok(test == pic, "Wrong context is on top\n"); + if (test) + ITfContext_Release(test); + ok(test_OnPushContext == SINK_EXPECTED, "Unexpected OnPushContext sink\n"); test_OnPushContext = SINK_FIRED; return S_OK;
1
0
0
0
Aric Stewart : msctf: ITfContext:: GetDocumentMgr should AddRef the DocumentMgr.
by Alexandre Julliard
24 Jun '09
24 Jun '09
Module: wine Branch: master Commit: 2dd5a3bea2fbcc049132708cc4859126ab2a03cb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2dd5a3bea2fbcc049132708cc…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Wed Jun 24 17:29:05 2009 +0900 msctf: ITfContext::GetDocumentMgr should AddRef the DocumentMgr. --- dlls/msctf/context.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/msctf/context.c b/dlls/msctf/context.c index e11a0e8..5be06d3 100644 --- a/dlls/msctf/context.c +++ b/dlls/msctf/context.c @@ -532,6 +532,9 @@ static HRESULT WINAPI Context_GetDocumentMgr (ITfContext *iface, *ppDm = This->manager; if (!This->manager) return S_FALSE; + + ITfDocumentMgr_AddRef(This->manager); + return S_OK; }
1
0
0
0
Aric Stewart : msctf: Implement ITfContext::GetStatus.
by Alexandre Julliard
24 Jun '09
24 Jun '09
Module: wine Branch: master Commit: 190357b14ba498cb4504410069cd4bd0bfec1955 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=190357b14ba498cb450441006…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Wed Jun 24 17:28:31 2009 +0900 msctf: Implement ITfContext::GetStatus. --- dlls/msctf/context.c | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/dlls/msctf/context.c b/dlls/msctf/context.c index e5cf602..e11a0e8 100644 --- a/dlls/msctf/context.c +++ b/dlls/msctf/context.c @@ -466,8 +466,25 @@ static HRESULT WINAPI Context_GetStatus (ITfContext *iface, TF_STATUS *pdcs) { Context *This = (Context *)iface; - FIXME("STUB:(%p)\n",This); - return E_NOTIMPL; + TRACE("(%p) %p\n",This,pdcs); + + if (!This->connected) + return TF_E_DISCONNECTED; + + if (!pdcs) + return E_INVALIDARG; + + if (!This->pITextStoreACP) + { + FIXME("Context does not have a ITextStoreACP\n"); + return E_NOTIMPL; + } + + ITextStoreACP_GetStatus(This->pITextStoreACP, &This->documentStatus); + + *pdcs = This->documentStatus; + + return S_OK; } static HRESULT WINAPI Context_GetProperty (ITfContext *iface,
1
0
0
0
← Newer
1
...
25
26
27
28
29
30
31
...
112
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Results per page:
10
25
50
100
200