Re: [1/3] riched20: Implement handling of WM_KEYDOWN VK_RETURN in a dialog mode.

2009-09-02 Thread Sergey Khodych
1. editor->hWnd may be NULL for windowless richedit controls, but you code doesn't seem to take that into consideration. 2. The style flags that you get from GetWindowLongW should probably come from the cached values in editor->styleFlags. The main reason why GetWindowLongW is used there is that

Re: comctl32:rebar: Don't store an empty string in REBAR_InsertBandT.

2009-05-28 Thread Sergey Khodych
Nikolay Sivov пишет: If a band has an empty string, wine allocates a padding space in lpBand->rcCapText that causes an offset in a band. It looks like a workaround, if get/set text behaves ok now (no tests exist I suppose) then the only place to be changed is this rectangle dimensions. Why do

Re: comctl32:rebar: Don't store an empty string in REBAR_InsertBandT.

2009-05-28 Thread Sergey Khodych
Nikolay Sivov пишет: It looks like you need to add a simple test like that: - add band with empty string and RBBIM_TEXT mask of course; - query band data back with RB_GETBANDINFO and check this lpText field. If it's really NULL (e.g. your buffer didn't change) instead of empty string you shou

Re: comctl32:rebar: Don't store an empty string in REBAR_InsertBandT.

2009-05-26 Thread Sergey Khodych
Nikolay Sivov пишет: Where did you test that it isn't stored? The patch fixes a bug when wine allocates an extra space for a band with an empty string. I replaced NULL by "" in the size test to show the native realization doesn't change its behavior unlike wine in this case.

Re: mpr: Improve stubs for WNetGetUniversalName.

2008-08-28 Thread Sergey Khodych
James Hawkins wrote: > There are several things wrong with this patch: > * It's way too large. Please split it up. > * No tests. You need to write tests to back up these changes. Are tests necessary for simple stubs? I don't know what kind of tests can be written for stubs, except tests for wrong

winex11: BitBlt returns TRUE when drawing outside of the clipping or visible region.

2008-05-25 Thread Sergey Khodych
>From dd25a83863f492e6c804a46f339e5c22b7d0e3dd Mon Sep 17 00:00:00 2001 From: Sergey Khodych <[EMAIL PROTECTED]> Date: Sat, 24 May 2008 21:29:05 +0300 Subject: BitBlt returns TRUE when drawing outside of the clipping or visible region. --- dlls/winex11.drv/bitblt.c |6 --

Re: dinput: Convert keyboard buffer from internal data format to user data format

2008-05-14 Thread Sergey Khodych
> To reply to myself. I've missed the fact that if the requested format is > the > same as Wine's internal format it will be a simple memcpy. I did not > want to > penalize most dinput applications that just use default keyboard format > (array > of 256 bytes). > What do you think about using c

Re: [1/4] dinput: Return error for unknown property.

2008-04-21 Thread Sergey Khodych
> I'd like to see tests for this. Also lots of programs will break because > they won't get some not significant property. No short - don't do this. But wine return a garbage value also for significant property. This value may cause undefined behavior of application. The patch will make errors

Re: dinput: Implement DIPROP_KEYNAME property for keyboard device

2008-04-16 Thread Sergey Khodych
> No, there are 2 separate implementations - one ascii another unicode. During > the object creation one would specify either ascii or unicode RIID. Objects IDirectInputDevice8W and IDirectInputDevice8A has function GetProperty. This function get struct of type DIPROPSTRING as input/output parame

Re: dinput: Implement DIPROP_KEYNAME property for keyboard device

2008-04-15 Thread Sergey Khodych
> In ascii function you are calling unicode function and copying it's output > (unicode string) to the ascii string buffer. This is wrong. Also because > these functions deal with strings you have to implement both ascii and > unicode functions at the same time. You can't forward one to the othe

Re: dinput: Implement DIPROP_KEYNAME property for keyboard device

2008-04-14 Thread Sergey Khodych
> >> ... >> +hr = SysKeyboardWImpl_GetObjectInfo( >> (LPDIRECTINPUTDEVICE8W)iface , &didoi, >> + ps->diph.dwObj, >> ps->diph.dwHow ); > > You mixing unicode and ascii. Also if you are implementing > SysKeyboardAImpl_GetPropert

Re: dinput: Convert keyboard buffer from internal data format to user data format

2008-04-14 Thread Sergey Khodych
A possibility of using custom data format, for any type of devices, is described in DirectX SDK documentation. For example Monolith's F.E.A.R. use this method. > Any particular reason for this? Do you have a program that sets different > data format? The reason I ask - copying 256 bytes is much