Re: ntdll: Support pinning module refcount with LdrAddRefDll()

2013-10-13 Thread Dmitry Timoshkov
Nikolay Sivov wrote: > +FreeLibrary(mod); Please add the tests for FreeLibrary return value. -- Dmitry.

Re: mscoree: Add support for ICLRMetaHostPolicy interface

2013-10-12 Thread Dmitry Timoshkov
IID_IUnknown) || IsEqualGUID(riid, &IID_IAnotherSupported) { xxx_AddRef(iface); *object = iface; return S_OK; } *object = NULL; return E_NOINTERFACE; } -- Dmitry.

Re: [PATCH 4/5] d3drm: Compare with the correct IID in IDirect3DRMVisualArrayImpl_QueryInterface().

2013-10-09 Thread Dmitry Timoshkov
ualGUID(riid, &IID_IUnknown)) > { > -*ret_iface = iface; > IDirect3DRMVisualArray_AddRef(iface); > +*out = iface; > return S_OK; > } Although this is existing code the assignment '*out = iface' is wrong, especially since next patch introduces impl_from_IDirect3DRMVisualArray() helper. Looks like that file needs a bit of COM clean up. -- Dmitry.

Re: server: Set the unix file write mode bit also for FILE_APPEND_DATA access.

2013-10-02 Thread Dmitry Timoshkov
Dmitry Timoshkov wrote: > diff --git a/server/file.c b/server/file.c > index 2ecf97c..94d3060 100644 > --- a/server/file.c > +++ b/server/file.c > @@ -459,7 +459,7 @@ static mode_t file_access_to_mode( unsigned int access ) > > access = generic_file_map_access( access

Re: [4/5] ntdll: Make asynchronous NtWriteFile on a disk file always return STATUS_PENDING.

2013-10-01 Thread Dmitry Timoshkov
sn't that convincing enough? If not, what else do you need to see? -- Dmitry.

Re: [4/5] ntdll: Make asynchronous NtWriteFile on a disk file always return STATUS_PENDING.

2013-10-01 Thread Dmitry Timoshkov
for overlapped writes and reads? But that's clearly not how Windows implements this accordingto the tests, and that would require changing all the tests to accept both values so that they pass under Wine. -- Dmitry.

Re: [4/5] ntdll: Make asynchronous NtWriteFile on a disk file always return STATUS_PENDING.

2013-09-30 Thread Dmitry Timoshkov
rly show that up-to-date Windows versions (including Windows XP) always return STATUS_PENDING for asynchronous read and write on disk files. Is there another way to remove all those todo_wine statements from the tests? -- Dmitry.

Re: ntdll: Perform the offset checks also for a serial device.

2013-09-25 Thread Dmitry Timoshkov
try to figure out why this test doesn't always pass. I have no no idea what kind of results you have in mind that I'd need to share. Also I'd appreciate avoiding the wording like "please don't waste my time", otherwise it becomes pretty obvious that I should just reply to failure notifications in the testbot with simple "it's broken" and stop wasting my time explaining why. -- Dmitry.

Re: ntdll: Perform the offset checks also for a serial device.

2013-09-25 Thread Dmitry Timoshkov
t; > > comm.c:1528: Changing CommMask on the fly for handle 00F8 after > > > timeout 500 > > > > This VM is broken, > > How so? That is: what should I do to fix it? Investigate, find the source of failures and fix it? Note, that all other VMs pass this test just fine, moreover, this same w7pro64 VM doesn't always fail. -- Dmitry.

Re: ntdll: Perform the offset checks also for a serial device.

2013-09-23 Thread Dmitry Timoshkov
Dmitry Timoshkov wrote: > Marvin wrote: > > > === w7pro64 (32 bit comm) === > > comm.c:863: Test failed: WaitCommEvent failed with a timeout > > comm.c:875: recovering after WAIT_TIMEOUT... > > comm.c:886: Test failed: WaitCommEvent error 0 > > comm.c:888:

Re: ntdll: Perform the offset checks also for a serial device.

2013-09-23 Thread Dmitry Timoshkov
This VM is broken, my working computer runs Windows 7 Pro 64-bit on real hardware, and I run both 32-bit and 64-bit tests with and without serial devices powered on. -- Dmitry.

Re: Asynchronous read/write tests in ntdll/tests/file.c

2013-09-18 Thread Dmitry Timoshkov
nly in the cases known to not contain STATUS_PENDING of a being executed operation, which means that the operation has already finished and waiting would return immediately and therefore is not necessary and redundant. -- Dmitry.

Re: [1/4] ntdll/tests: Add 0-length read tests for a disk file.

2013-09-18 Thread Dmitry Timoshkov
bytes == 0, "bytes %u\n", bytes); > > > That's again a test for kernel32 calls, placed in a wrong file. Please actually look at the tests before commenting. -- Dmitry.

Re: windowscodecs: Implement CreateBitmapFromHBITMAP.

2013-09-16 Thread Dmitry Timoshkov
suggest to accept the patch as as, and make further improvements based on it. -- Dmitry.

Re: ntdll/tests: Fix compilation on systems that don't support nameless unions. (rediffed)

2013-09-13 Thread Dmitry Timoshkov
Francois Gouget wrote: > That tree was a bit out of date causing the patch to fail to apply. I > updated it and rediffed. I'd appreciate if you could postpone sending this sort of patches when they could conflict with other pending patches in that area. Thanks. -- Dmitry.

Re: ntdll: Add a file access test.

2013-09-13 Thread Dmitry Timoshkov
> It doesn't matter what it uses internally. You're testing kernel32 calls. What are you trying to prove? Half of the calls in that file are using kernel32 APIs, that doesn't mean that they need to be moved to kernel32 or that they are doing something wrong. -- Dmitry.

Re: ntdll: Add a file access test.

2013-09-13 Thread Dmitry Timoshkov
Nikolay Sivov wrote: > It looks like it belongs to kernel32/tests. Since actual access checks are done by ntdll APIs I believe that ntdll/tests is appropriate place, kernel32 file APIs are just wrappers around the tested functionality. -- Dmitry.

Re: [PATCH 3/6] user32: Export WINPOS_GetMinMaxInfo() as __wine_get_min_max_info() so it can be called by drivers.

2013-09-12 Thread Dmitry Timoshkov
INPOS_GetMinMaxInfo(), too. Do you really need anything besides ptMaxSize? In any way even duplicating some of that code is cleaner than adding one more private export IMHO. -- Dmitry.

Re: [2/2] kernel32: Remove a 0-length read optimization from ReadFile.

2013-09-12 Thread Dmitry Timoshkov
lls directories that may be affected. -- Dmitry.

Re: [1/2] ntdll: Properly handle 0-length reads.

2013-09-11 Thread Dmitry Timoshkov
out 500 handle 00F8 > comm.c:1528: Changing CommMask on the fly for handle 00F8 after timeout > 500 These failures have nothing to do with this patch. -- Dmitry.

Re: [PATCH 3/6] user32: Export WINPOS_GetMinMaxInfo() as __wine_get_min_max_info() so it can be called by drivers.

2013-09-11 Thread Dmitry Timoshkov
Ken Thomases wrote: > +@ cdecl __wine_get_min_max_info(long ptr ptr ptr ptr) WINPOS_GetMinMaxInfo What's wrong with calling SendMessage(WM_GETMINMAXINFO) from the driver? -- Dmitry.

Re: (resend) [PATCH] serial: wait_for_event() must set Information in PIO_STATUS_BLOCK

2013-09-10 Thread Dmitry Timoshkov
x27;d guess that it should be set in any case since 'events' is always initialized. -- Dmitry.

Re: [2/5] ntdll: Make NtWriteFile handle special offset -2 same way as -1. Resend.

2013-09-10 Thread Dmitry Timoshkov
Alexandre Julliard wrote: > Why do you need that? It doesn't look to me like an improvement. IMO it simplifies the code and avoids using two different code paths for normal files. -- Dmitry.

Re: [2/6] ntdll: Add support to NtWriteFile for special offset -1.

2013-09-06 Thread Dmitry Timoshkov
e caller. Of course you are correct, thanks. -- Dmitry.

Re: [PATCH 2/5] wait until all data from earlier test has been written in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
ut a patch set which does: 1/2. add a workaround to the tests to pass under Wine 2/2. fix Wine code and simultaneously remove the workaround added by 1/2. But that looks even more strange if the fix contained in 2/2 could be sent alone. -- Dmitry.

Re: [PATCH 2/5] wait until all data from earlier test has been written in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
really related. Adding a workaround to the tests to compensate a Wine bug and as a side effect remove some todo_wines is not a fix. Yes, some tests depend on each other, but that's on purpose, there is no need to break this dependency just because you can make some later tests suddenly "pass". -- Dmitry.

Re: [PATCH 2/5] wait until all data from earlier test has been written in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
; > func=3 method=0) comm.c:2036: Tests skipped: interactive tests (set > > > WINETEST_INTERACTIVE=1) > > Successes inside of todo_wine blocks are treated as failres. > > So you think I should remove the wine_todos already here? No, the source of the failures is still there. -- Dmitry.

Re: [PATCH 2/5] wait until all data from earlier test has been written in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
gt; No, the source of the failures is still there. > > What do you mean with that? The tests indeed do succeed now and there is a > reason they do: when you call WaitCommEvent() while the tx buffer is not > empty > yet the wine code will detect that EV_TXEMPTY correctly: The tests must pass under Wine without any additional "fixes" as they do currently under Windows. If you add some code to the tests which suddenly makes them pass under Wine - that's not a fix, Wine implementation should be fixed instead. -- Dmitry.

Re: ws2_32: Cope with invalid protocols in WSAEnumProtocols

2013-09-05 Thread Dmitry Timoshkov
0 }; This should be 'static const'. -- Dmitry.

Re: [PATCH 2/5] wait until all data from earlier test has been written in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
side todo block: WaitCommEvent used 1141 ms for > waiting > err:comm:set_line_control ByteSize > fixme:ntdll:server_ioctl_file Unsupported ioctl 1b000c (device=1b access=0 > func=3 method=0) > comm.c:2036: Tests skipped: interactive tests (set WINETEST_INTERACTIVE=1) Successes inside of todo_wine blocks are treated as failres. -- Dmitry.

Re: [PATCH 2/5] wait until all data from earlier test has been written in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
sts the EV_TXEMPTY behaviour: > > Again 17 bytes are written and then the tests assume that one waits > for these 17 bytes (timeout value and messurement). > But really we wait for much more bytes being sent, up to 36. > > So even if EV_TXEMPTY handling would work the test for it will fail with a > timeout. Does 'make test' pass without failures for you? -- Dmitry.

Re: [PATCH 2/5] wait until all data from earlier test has been written in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
gt; > > > When Wine behaviour differs from Windows one the test results need to be > > marked as todo_wine, and such places already have it. > > I don't unterstand you. I didn't change the test case. It still above and is > still marked with todo. There is no need to add any workarounds for Wine bugs, appropriate places already have todo_wine statements. -- Dmitry.

Re: [PATCH 5/5] kernel32/tests: remove several todos in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
gt; incorrect or incomplete. > > Then you think that wine behaviour should be changed? If the test result is marked as todo_wine then yes. > If yes I'll send a > patch. But I wonder as wine does quit some effort to do otherwise. I'm already working on fixing bugs discovered by kernel32 comm and related ntdll file tests. -- Dmitry.

Re: [PATCH 5/5] kernel32/tests: remove several todos in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
the GetLastError function returns ERROR_IO_PENDING, > indicating that the operation is executing in the background." We have the tests for that, MSDN descriptions are proved to be often incorrect or incomplete. -- Dmitry.

Re: [PATCH 2/5] wait until all data from earlier test has been written in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
and serial-USB cable > > under Windows or Linux here and under testbot VMs. > > Wine does that here (vanilla). I added this so that the NEXT test does not > depend what wine exactly does. When Wine behaviour differs from Windows one the test results need to be marked as todo_wine, and such places already have it. -- Dmitry.

Re: [PATCH 5/5] kernel32/tests: remove several todos in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
at WaitCommEvent returns immediately with TRUE if there is an > event pending, as far as I can see. WaitCommEvent always returns FALSE when device is opened in overlapped mode. -- Dmitry.

Re: [PATCH 1/5] use a correct timeout in test_waittxempty

2013-09-05 Thread Dmitry Timoshkov
y sent 150 bits/s? > > Maybe you are using a virtual machine or your com port does not support 150 > baud and chooses a different speed. Or you use a UART with a large buffer and > which already signals TX-EMPTY even if it is still sending from an internal > buffer. But one should not rely on that. I'm testing under 64-bit Windows 7 on real hardware. -- Dmitry.

Re: [PATCH 5/5] kernel32/tests: remove several todos in test_waittxempty

2013-09-04 Thread Dmitry Timoshkov
GetLastError()); This change looks spurious and unrelated. Also todos must be removed in the patch that fixes appropriate behaviour. -- Dmitry.

Re: [PATCH 2/5] wait until all data from earlier test has been written in test_waittxempty

2013-09-04 Thread Dmitry Timoshkov
and under testbot VMs. -- Dmitry.

Re: [PATCH 1/5] use a correct timeout in test_waittxempty

2013-09-04 Thread Dmitry Timoshkov
s. Testbot VMs also don't fail this test. If under Wine it takes > 1000 ms for you then probably there is a bug somewhere. -- Dmitry.

Re: Adding an appcompat/appshim bugzilla keyword

2013-09-03 Thread Dmitry Timoshkov
is no need to invent new keywords for broken behaviour. -- Dmitry.

Re: [2/2] kernel32/tests: Add a test to show that WaitCommEvent should fail if there is a pending wait.

2013-09-02 Thread Dmitry Timoshkov
fly for handle 0130 after timeout > 500 These are all existing tests, nothing to do with this patch. Also it's strange that 1/2 has passed these tests without failures while 2/2 fails. This new testbot behaviour doesn't look very robust. -- Dmitry.

Re: ntdll: Store full line status register in the internal structure, not just the TIOCSER_TEMT bit. Take 2.

2013-08-30 Thread Dmitry Timoshkov
, and looked around in various mailing lists, which made me think that your kernel may set UART_LSR_TEMT instead... -- Dmitry.

Re: ntdll: Store full line status register in the internal structure, not just the TIOCSER_TEMT bit. Take 2.

2013-08-30 Thread Dmitry Timoshkov
on't, but maybe yours does. The only way to check that is to store and print the whole LSR value. Do you happen to have something connected to COM-port (perhaps mouse?) which may explain test failures. -- Dmitry.

Re: [2/2] ntdll: Store full line status register in the internal structure, not just the TIOCSER_TEMT bit.

2013-08-29 Thread Dmitry Timoshkov
Dmitry Timoshkov wrote: > Printing complete lsr value in the log may help with diagnosing > test failures on Alexandre's machine. This patch is marked as 'Build failure' in the tracker, but I've checked it once again and compiles just fine here. What kind of build failure is that? -- Dmitry.

Re: [1/2] server: Use tcdrain() instead of tcflush() to implement FlushFileBuffers() for a COM port. Take 2.

2013-08-29 Thread Dmitry Timoshkov
Dmitry Timoshkov wrote: > Based on a patch of Wolfgang Walter. Is there anything wrong with this patch? -- Dmitry.

Re: [4/4] ntdll: Properly set flag which indicates buffer empty state.

2013-08-28 Thread Dmitry Timoshkov
Dmitry Timoshkov wrote: > Wolfgang Walter wrote: > > > I think that happens: > > > > * application writes data to com port. > > * all is written, serial buffer is empty > > * application calls WaitCommEvent() > > * wait_on() is called > > * w

Re: [4/4] ntdll: Properly set flag which indicates buffer empty state.

2013-08-28 Thread Dmitry Timoshkov
n between: That means that WaitCommEvent(EV_TXEMPTY) without any prior WriteFile would always return success and signal the EV_TXEMPTY event. My tests show that WaitCommEvent(EV_TXEMPTY) fails with a timeout in this case. Since the serial device is very slow it should be unlikely that after successful WriteFile() with some data WaitCommEvent() sees an already empty transmitter's output queue. -- Dmitry.

Re: [4/4] ntdll: Properly set flag which indicates buffer empty state.

2013-08-28 Thread Dmitry Timoshkov
> > The WriteFile error is a timing thing, it doesn't always happen (and > that test is clearly broken, ticks can be incremented at any point). > The other errors always happen. It's a real COM port. Could you please generate a log with additional trace for the empty flag? -- Dmitry.

Re: [4/4] ntdll: Properly set flag which indicates buffer empty state.

2013-08-27 Thread Dmitry Timoshkov
Dmitry Timoshkov wrote: > Alexandre Julliard wrote: > > > It doesn't work here: > > > > ../../../tools/runtest -q -P wine -M kernel32.dll -T ../../.. -p > > kernel32_test.exe.so comm.c && touch comm.ok > > comm.c:835: Test failed: WriteFile t

Re: [4/4] ntdll: Properly set flag which indicates buffer empty state.

2013-08-27 Thread Dmitry Timoshkov
INETEST_INTERACTIVE=1) > make: *** [comm.ok] Error 5 I assume it's a real hardware and not a VM? Is this with a real COM port, or USB-serial cable? If the latter one what driver is it using? -- Dmitry.

Re: ntdll: Implement job objects

2013-08-27 Thread Dmitry Timoshkov
Andrew Cook wrote: > On 27/08/13 22:02, Dmitry Timoshkov wrote: > > Andrew Cook wrote: > >> --- a/include/wine/server_protocol.h > >> +++ b/include/wine/server_protocol.h > > > > And don't include autogenerated stuff in the patch. > > >

Re: ntdll: Implement job objects

2013-08-27 Thread Dmitry Timoshkov
process ); > +static NTSTATUS (WINAPI *pNtIsProcessInJob)( HANDLE process, HANDLE job ); > +static NTSTATUS (WINAPI *pNtTerminateJobObject)( HANDLE job, NTSTATUS status > ); Please move it to the beginning of the file. > --- a/include/wine/server_protocol.h > +++ b/include/wine/server_protocol.h And don't include autogenerated stuff in the patch. -- Dmitry.

Re: [1/4] ntdll: Ignore ioctl(TIOCGICOUNT) failures.

2013-08-27 Thread Dmitry Timoshkov
which doesn't work? What hardware and driver are you using? -- Dmitry.

Re: [4/4] ntdll: Properly set flag which indicates buffer empty state.

2013-08-27 Thread Dmitry Timoshkov
Marvin wrote: > === WVISTAX64 (32 bit comm) === > comm.c:835: Test failed: WriteFile took 16 ms to write 0 Bytes at 150 Baud Failure is not caused by this patch, probably a VM is very slow. -- Dmitry.

Re: [2/3] server: Use tcdrain() instead of tcflush() to implement FlushFileBuffers() for a COM port.

2013-08-26 Thread Dmitry Timoshkov
Alexandre Julliard wrote: > It's a blocking call, you can't do that on the server side. Can then something like in the patch from Wolfgang Walter be done instead? -- Dmitry.

Re: [5/6] ntdll: Make NtReadFile always initialize a being returned IO_STATUS_BLOCK for regular files.

2013-08-21 Thread Dmitry Timoshkov
iles. There is a test for pipes which fails if there is no this limitation. -- Dmitry.

Re: [1/3] apphelp: Add definitions

2013-08-16 Thread Dmitry Timoshkov
some reason ignored > > [please bottom post when replying] -- Dmitry.

Re: [3/3] ntdll/tests: Add a bunch of overlapped IO tests for files.

2013-08-16 Thread Dmitry Timoshkov
== 0xc011 > file.c:1008: Test failed: Invalid ioSb.Information: 3 This is an existing test. Same for other VMs with failures. -- Dmitry.

Re: [1/3] apphelp: Add definitions

2013-08-16 Thread Dmitry Timoshkov
help/tests/apphelp.c > [2] https://github.com/krofna/wine/blob/master/dlls/kernel32/process.c#L1088 How is this supposed to be used in Wine? -- Dmitry.

Re: [1/3] apphelp: Add definitions

2013-08-15 Thread Dmitry Timoshkov
from? Is there an application that calls apphelp APIs and doesn't work because of failures? How are you testing your implementation? -- Dmitry.

Re: gdiplus: Only clip strings if rectangle width and height are positive.

2013-08-13 Thread Dmitry Timoshkov
< 23 && > +rect->Width > 0.0 && rect->Height > 0.0) > { > /* FIXME: If only the width or only the height is 0, we should > probably still clip */ > rgn = CreatePolygonRgn(corners, 4, ALTERNATE); Probably FIXME should be removed then. -- Dmitry.

Re: windowscodecs: Workaround libtiff bug when it defines toff_t as 32-bit for 32-bit builds. Take 2.

2013-07-30 Thread Dmitry Timoshkov
r whether it's broken 4.0 headers. So I don't see how checking for the size of toff_t makes it possible to differentiate between 3.x, 4.x and broken 4.x headers. -- Dmitry.

Re: windowscodecs: Workaround libtiff bug when it defines toff_t as 32-bit for 32-bit builds. Take 2.

2013-07-30 Thread Dmitry Timoshkov
guments not > > clear enough? > > You shouldn't check the version, but the actual problem (i.e. the size > of the offending type). Also please avoid unnecessary changes. What changes do you consider as unnecessary? -- Dmitry.

Re: windowscodecs: Workaround libtiff bug when it defines toff_t as 32-bit for 32-bit builds. Take 2.

2013-07-29 Thread Dmitry Timoshkov
Dmitry Timoshkov wrote: > > There's a TIFF_VERSION define that seems to have been renamed to > > TIFF_VERSION_CLASSIC in 4.0. > > > > It doesn't make sense to do the check at runtime, given we're only > > going to link to one of the versions. >

Re: windowscodecs: Workaround libtiff bug when it defines toff_t as 32-bit for 32-bit builds. Take 2.

2013-07-26 Thread Dmitry Timoshkov
erentiate between 3.x and 4.x at compile time. -- Dmitry.

Re: windowscodecs: Workaround libtiff bug when it defines toff_t as 32-bit for 32-bit builds.

2013-07-25 Thread Dmitry Timoshkov
tro problem, it's a libtiff bug. > Actually, this will be a problem on libtiff 3.x, where toff_t really > is supposed to be 32-bit. Yes, it will be broken for libtiff3, I haven't looked yet how to detect a libtiff version at compile and run time, if you know how to do that please let me know. -- Dmitry.

Re: [2/2] gdiplus: Store graphics clipping region in device coordinates.

2013-07-19 Thread Dmitry Timoshkov
Vincent Povirk wrote: > I'm curious what happens if the world transform has some rotation. It > seems like transform_rectf would break in that case. It works just fine in the samples I have here, why would it break? -- Dmitry.

Re: ntdll: Tests for RtlHashUnicodeString()

2013-07-16 Thread Dmitry Timoshkov
eaders as another complexity level, then decide whether you really would like to add another hoop to jump through. Compilation with a PSDK tool chain and PSDK headers is an extremely valuable thing for testing, it would be a pity to lose it. -- Dmitry.

Re: ntdll: Tests for RtlHashUnicodeString()

2013-07-15 Thread Dmitry Timoshkov
Nikolay Sivov wrote: > +#include "ddk/wdm.h" Please don't do that, this breaks compilation with PSDK headers. If you need some specific definitions, types or API prototypes - replicate them in the test itself. -- Dmitry.

Re: [PATCH] windowscodecs/tests: Fix a test failure [newwtb and other]

2013-07-05 Thread Dmitry Timoshkov
ulting palette should be tested and released. I'd guess that newer version should be taken as a model to follow, and Wine implementation should be fixed appropriately. -- Dmitry.

Re: kernel/tests: Test behaviour of TPIDRURW register with threads on ARMv7

2013-07-03 Thread Dmitry Timoshkov
> +static inline DWORD get_tpidrurw(void) > +{ > +DWORD tpidrurw = 0; > +__asm__ volatile ("mrc p15, 0, %0, c13, c0, 2" : "=r" (tpidrurw)); > +return tpidrurw; > +} This code is gcc specific and for instance won't compile with PSDK compiler. It either needs to be protected or replaced with hex/binary form. -- Dmitry.

Re: RFC: Three dots or Unicode ellipsis character

2013-07-03 Thread Dmitry Timoshkov
WindowTextA). -- Dmitry.

Re: ntdll: NtAllocateVirtualMemory should fail to commit if an address range is already committed for a memory mapped file.

2013-06-28 Thread Dmitry Timoshkov
h is of course an > improvement, but not worth the risk during code freeze). Including the patch in 1.6 is certainly up to you, I don't have an actual application that depends on this. -- Dmitry.

Re: [PATCH] advapi32: RegDeleteKey tests

2013-06-24 Thread Dmitry Timoshkov
klmsub1 ); > +ok(res != ERROR_SUCCESS, "test key found in hklm: %d\n", res); Testing for res != ERROR_SUCCESS is not very useful, please check for a particular error code. Also please close successfully opened handles. -- Dmitry.

Re: ol32: Make enumx implementation look more like a COM interface.

2013-06-24 Thread Dmitry Timoshkov
; > free, and looks now as an actual COM object. > > Not really. An actual COM object would contain a pointer to a vtable for > the correct interface. IUnknown is not much better than void*. enumx doesn't need anything else besides IUnknown interface, having right inteface definition won't change anything. -- Dmitry.

Re: ol32: Make enumx implementation look more like a COM interface.

2013-06-24 Thread Dmitry Timoshkov
e and decided to fix it since it's clearly wrong and may lead to other problems. -- Dmitry.

Re: ol32: Make enumx implementation look more like a COM interface.

2013-06-23 Thread Dmitry Timoshkov
clear the pending patch state? -- Dmitry.

Re: [PATCH] ole32: LeaveCriticalSection in one exit case (Coverity)

2013-06-23 Thread Dmitry Timoshkov
t; > if (0==cb) { > > > > Why not unconditionally release the lock before the '0==cb' check? > > That would cause LeaveCriticalSection be called twice with a race window > inbetween. Of course you'd need to remove a redundant LeaveCriticalSection under 'if (0==cb)' case, and I don't see a race there. -- Dmitry.

Re: [PATCH] ole32: LeaveCriticalSection in one exit case (Coverity)

2013-06-23 Thread Dmitry Timoshkov
asePending = FALSE; > Malloc32.pSpy = NULL; > + /* cb == 0 case will release it some lines below. */ > + if (cb) LeaveCriticalSection(&IMalloc32_SpyCS); > } > > if (0==cb) { Why not unconditionally release the lock before the '0==cb' check? -- Dmitry.

Re: comctl32: Use default GUI font as a fallback instead of a (non-existent) Arial.

2013-06-17 Thread Dmitry Timoshkov
Daniel Jeliński wrote: > I'm quite sure you didn't mean to ignore return value of GetStockObject and > leave logfont uninitialized here. GetStockObject(DEFAULT_GUI_FONT) can't fail. -- Dmitry.

Re: gdiplus: fix a clipping regression in GdipDrawString (try 3)

2013-06-14 Thread Dmitry Timoshkov
Rafał Mużyło wrote: > Going on an assumption, that 0 is a magic value (standing for 'point'), > compare against it. Fixes 6ab04040e52465e77558a067309e8a54bdc0f32c regression, > so would be nice if this got into wine 1.6. It would be nice to see some test cases first. -- Dmitry.

Re: Wine's Tahoma...

2013-06-12 Thread Dmitry Timoshkov
nd at least read its copyright statement. Then you may try to investigate the reasons of bitmap glyph sets, and what happens without them. Once the investigation step is done you may try to add glyphs one by one which cover all the discovered issues. -- Dmitry.

Re: [PATCH] ole32: fixed 3 handle leaks (Coverity)

2013-06-09 Thread Dmitry Timoshkov
ces at process exit since the whole process address space is going to be destroyed anyway. Moreover, recently Alexandre has cleaned up all the DLL entry points in Wine to not free memory on process exit either since it may lead to dead locks. -- Dmitry.

Re: [PATCH] ole32: fixed 3 handle leaks (Coverity)

2013-06-09 Thread Dmitry Timoshkov
run within a library. What do you mean by "library" in this context? -- Dmitry.

Re: [PATCH] ole32: fixed 3 handle leaks (Coverity)

2013-06-09 Thread Dmitry Timoshkov
Marcus Meissner wrote: > 1030106 Resource leak > 1030105 Resource leak > 1030104 Resource leak These cases are of the kind 'freeing resources at process exit is not useful'. -- Dmitry.

Re: ntdll: Add stub for LdrResolveDelayLoadedAPI and reference it in kernel32

2013-06-05 Thread Dmitry Timoshkov
DELAYLOAD_DESCRIPTOR; Same question here about IMAGE_DELAYLOAD_DESCRIPTOR. Besides, the structure contains namesless structure which is not compatible with some compilers and needs to be fixed. -- Dmitry.

Re: ole32: Add a basic OLE client/server test suite. Take 2.

2013-06-05 Thread Dmitry Timoshkov
an initial test accepted it's impossible to add other tests. -- Dmitry.

Re: ole32: Add a basic OLE client/server test suite. Take 2.

2013-06-05 Thread Dmitry Timoshkov
the client side leads to interface queries on the server side from the class factory instead of the object, without my test I wouldn't figure that out. > But I'm sure you can find other ways, > like using a file in line-buffered mode or things like that. Think about > it some more. That would help with avoding a mutex, but mutex is a tiny part of the test. -- Dmitry.

Re: ole32: Add a basic OLE client/server test suite. Take 2.

2013-06-05 Thread Dmitry Timoshkov
Dmitry Timoshkov wrote: > Alexandre Julliard wrote: > > > It seems to be awfully complicated. In particular I don't think you need > > a shared mapping plus a pipe plus a mutex just to log tracing > > output. Redefining standard macros is also not a good idea.

Re: [PATCH 1/8] winemac: Don't unminimize a window on first activation during start-up.

2013-06-04 Thread Dmitry Timoshkov
Ken Thomases wrote: > --- > dlls/winemac.drv/cocoa_app.h |2 ++ > dlls/winemac.drv/cocoa_app.m |3 ++- > 2 files changed, 4 insertions(+), 1 deletions(-) I wonder, do you actually run 'make test' in dlls/user32/tests with your changes? My guess is that you don't. -- Dmitry.

Re: ole32: Add a basic OLE client/server test suite. Take 2.

2013-05-31 Thread Dmitry Timoshkov
x client and server output is messed up under Windows. Redefining trace allows to write to the pipe in the server and synchronize server output on the client side. If you have a suggestion how to simplify all of this please let me know. -- Dmitry.

Re: ole32: Add a basic OLE client/server test suite. Take 2.

2013-05-31 Thread Dmitry Timoshkov
Dmitry Timoshkov wrote: > With minor clean ups and with increased timeout to wait for server termination > to please some really slow VMs (that allowed to remove broken() statements). It would be helpful to provide some feedback and explain the 'pending' state of the patch w

Re: msvcrt: remove hack

2013-05-30 Thread Dmitry Timoshkov
ameters, in that cases there is no need to take any > > special action to silence a warning IMHO. > > > There is also __attribute__((unused_parameter)) but it's gcc specific. How is that better than 'unused = unused'? And it's even more typing... -- Dmitry.

Re: msvcrt: remove hack

2013-05-30 Thread Dmitry Timoshkov
at about action = NULL instead? A checker tool should be instructed to ignore that kind of a warning instead. There are many legitimate cases when a function doesn't use all of its parameters, in that cases there is no need to take any special action to silence a warning IMHO. -- Dmitry.

Re: gdi32/tests: Do not try to test OS/2 win metrics on non-windows fonts

2013-05-28 Thread Dmitry Timoshkov
s2.usWinDescent %u/%u\n", > + font_name, ntm->ntmCellHeight, cell_height, ascent, descent); > + > +SetLastError(0xdeadbeef); The SetLastError() call should be left at its previous position. -- Dmitry.

Re: [2/2] server: A being destroyed object may need to access other objects using a handle.

2013-05-24 Thread Dmitry Timoshkov
; > its > >> > refcount drops to 0. > >> > >> Obviously, but in general the handle will be the only reference. > > > > Then I don't understand what you mean regarding the code snippet above. > > After release_object, the object will have been freed if this was the > last reference. You can't keep a pointer to it. If you know how to fix this properly - please go ahead, I won't be able to investigate this till next week. -- Dmitry.

Re: [2/2] server: A being destroyed object may need to access other objects using a handle.

2013-05-24 Thread Dmitry Timoshkov
an't be accessed after being released. > > > > Being released doesn't mean destroyed. An object gets destroyed only if its > > refcount drops to 0. > > Obviously, but in general the handle will be the only reference. Then I don't understand what you mean regarding the code snippet above. -- Dmitry.

Re: [2/2] server: A being destroyed object may need to access other objects using a handle.

2013-05-24 Thread Dmitry Timoshkov
> struct object *obj = entry->ptr; > > -entry->ptr = NULL; > > if (obj) release_object( obj ); > > You can't do that, the object can't be accessed after being released. Being released doesn't mean destroyed. An object gets destroyed only if its refcount drops to 0. -- Dmitry.

Re: Alexandre Julliard : msvcrt: Don't bother to clean up at process exit.

2013-05-21 Thread Dmitry Timoshkov
Christian Costa wrote: > Out of curiosity. Not freeing these memory allocations shouldn't disturb > Valgrind to report false memory leaks? Avoiding heap access on process exit should avoid possible dead locks in case a terminated by ExitProcess thread holds the heap lock. -- Dmitry.

  1   2   3   4   5   6   7   8   9   10   >