Re: wsock32: Add a fallback for inet_network.

2013-10-14 Thread Alexandre Julliard
Huw Davies writes: > --- > dlls/wsock32/protocol.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This doesn't build on MingW: protocol.o: In function `WSOCK32_inet_network@4': /home/julliard/wine/build/obj-pe32/dlls/wsock32/../../../wine/dlls/wsock32/protoc

Re: [PATCH] user32/tests: Test SetUserObjectInformation for invisible winstation.

2013-10-10 Thread Alexandre Julliard
station.html -- Alexandre Julliard julli...@winehq.org

Re: (try 6)[3/5] imm32: use thread data from target HWND

2013-10-08 Thread Alexandre Julliard
e the default window from a different thread. -- Alexandre Julliard julli...@winehq.org

Re: [1/3] xmllite: Use buffer offset instead of pointers

2013-10-07 Thread Alexandre Julliard
t shows a build failure for this one, and I don't see any > failures on testbot for it so assuming something it fails on your > machine. So what's the exact failure you get? It's compiler warnings, you have several uninitialized or unused variables. Please review your changes carefully. -- Alexandre Julliard julli...@winehq.org

Re: riched20: Set control content in WM_CREATE message

2013-10-07 Thread Alexandre Julliard
icode=0x1, phresult=0x32fbdc) [/home/julliard/wine/wine/dlls/riched20/editor.c:4029] in riched20 (0x0032fb98) 1 0x7ac3d3ab CreateTextServices+0x11a(pUnkOuter=, pITextHost=, ppUnk=) [/home/julliard/wine/wine/dlls/riched20/txtsrv.c:417] in riched20 (0x0032fbf8) 2 0x686569cb func_txtsrv+0x2fa() [/

Re: BiDi, Unicode 6.3 and Wine.

2013-10-04 Thread Alexandre Julliard
27;s any evidence that the existing version is identical to Windows. It's probably just what happened to be the current version when the code was written. As long as it passes reasonable tests, it shouldn't be an issue to use a more recent version. -- Alexandre Julliard julli...@winehq.org

Re: [3/3] ntdll: Add support for FILE_APPEND_DATA to NtWriteFile. Take 2.

2013-10-04 Thread Alexandre Julliard
_WRITE_TO_END_OF_FILE > */ > +offset = &offset_eof; > +} > + Please add a test for the file position after the write, to show that this is the correct behavior. -- Alexandre Julliard julli...@winehq.org

Re: kernel32: Add tests for job objects (try 4)

2013-10-03 Thread Alexandre Julliard
E_VALUE, "CreateIoCompletionPort (%d)", > GetLastError()); > + > +JobObject = pCreateJobObjectW(NULL, NULL); > +ok(JobObject != INVALID_HANDLE_VALUE, "CreateJobObject (%d)\n", > GetLastError()); These functions don't return INVALID_HANDLE_VALUE. -- Alexandre Julliard julli...@winehq.org

Re: [2/2] gdi32: Don't modify output glyph metrics unless the function succeeds. (resend)

2013-10-02 Thread Alexandre Julliard
- Alexandre Julliard julli...@winehq.org

Re: imm32: ImmGetCandidateWindow should not return unset data

2013-10-01 Thread Alexandre Julliard
+ That's ugly. If you are using the index for validity checking then you should put some appropriate value in there, there's no reason to put garbage in the whole structure. -- Alexandre Julliard julli...@winehq.org

Re: [4/5] gdi32: Fix the B spacing value of empty glyph. (try 2)

2013-10-01 Thread Alexandre Julliard
e unchanged font.c:1133: Test succeeded inside todo block: RTL 1 advanced: abcA's sign should be unchanged font.c:1141: Test succeeded inside todo block: RTL 1 advanced: abcfA's sign should be unchanged -- Alexandre Julliard julli...@winehq.org

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

2013-10-01 Thread Alexandre Julliard
Dmitry Timoshkov writes: > The tests show that this is how fully up to date Windows versions starting > from XP behave, isn't that convincing enough? If not, what else do you need > to see? An application that breaks because of this. -- Alexandre Julliard julli...@winehq.org

Re: Fix text rotation problem in GM_ADVANCED graphics mode caused by incorrect implementation of GetTextExtentPointW().

2013-10-01 Thread Alexandre Julliard
Ralf Habacker writes: > On 01.10.2013 12:12, Alexandre Julliard wrote: >> Ralf Habacker writes: >> >>> With other patches i have been told to implement such stuff in the dib >>> driver. Unfortunally this do not works in this case, because in the top >&g

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

2013-10-01 Thread Alexandre Julliard
ts to accept both values so that they pass > under Wine. Well, the tests fail mostly because you have decided that this behavior is broken. I'm not convinced. -- Alexandre Julliard julli...@winehq.org

Re: ntdll: Fix the version reported for 64-bit Windows XP.

2013-10-01 Thread Alexandre Julliard
7; ','P','a','c','k',' ','3',0}, > 3, 0, VER_SUITE_SINGLEUSERTS, VER_NT_WORKSTATION, 30 /* FIXME: > Great, a reserved field with a value! */ > }, > +#endif This would mean that the 32-bit side sees a different version. I don't think that's correct. -- Alexandre Julliard julli...@winehq.org

Re: Fix text rotation problem in GM_ADVANCED graphics mode caused by incorrect implementation of GetTextExtentPointW().

2013-10-01 Thread Alexandre Julliard
y have to be in the driver, though maybe the driver would not be calling that exact entry point. In any case, you can't change the DC transform like this. and you'll need test cases. -- Alexandre Julliard julli...@winehq.org

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

2013-10-01 Thread Alexandre Julliard
Dmitry Timoshkov writes: > Alexandre Julliard wrote: > >> I don't see the point. Do you actually have an app that depends on this? > > When I started to work on this I had an app that has one of the reasons to > require running under Vista+ was the difference in overla

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

2013-09-30 Thread Alexandre Julliard
Dmitry Timoshkov writes: > --- > dlls/ntdll/file.c | 3 ++- > dlls/ntdll/tests/file.c | 5 +++-- > 2 files changed, 5 insertions(+), 3 deletions(-) I don't see the point. Do you actually have an app that depends on this? -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 1/2] setupapi: Also look in datadir/fakedlls for the re-compiled fakedlls.

2013-09-30 Thread Alexandre Julliard
Huw Davies writes: > --- > dlls/setupapi/fakedll.c | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) I don't think that's correct. The datadir is for platform-independent files, but the fakedlls are platform specific. -- Alexandre Julliard julli...@winehq.org

Re: [3/3] ws2_32: Implement WSASendMsg() (try 2)

2013-09-30 Thread Alexandre Julliard
etLastError(WSAEINVAL); > +goto cleanup; > +} > + > +ret = WS2_sendto( s, msg->lpBuffers, msg->dwBufferCount, > lpNumberOfBytesSent, > + dwFlags, msg->name, msg->namelen, > + lpOverlapped, lpCompletionRout

Re: [1/3] gdi32: Return fake BBox when requested empty glyph metrics. (try 3)

2013-09-27 Thread Alexandre Julliard
[1]: *** [dib.ok] Error 19 -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 1/2] advapi32: HKCR merge: foundation

2013-09-27 Thread Alexandre Julliard
Y ret; > +UINT_PTR idx = (UINT_PTR)hkey >> 2; > +opened_hkcr_t *hkcr; > +if (idx <= nb_hkcr_handles) > +{ > +EnterCriticalSection( &hkcr_handles_cs ); The count needs to be protected by the critical section too. Also please write a better subject line for the commit. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 1/2] gdi32: fix for rotated Arc, ArcTo, Chord and Pie drawing problem (try 2)

2013-09-26 Thread Alexandre Julliard
RUE; > +} > +else > +{ > +rect.left = left; > +rect.top = top; > +rect.right = right; > +rect.bottom = bottom; > +} I don't think that you want to draw arcs in logical space, that can be very inefficient. -- Alexandre Julliard julli...@winehq.org

Re: imm32: ImmGetDescriptionA return does not include NULL byte

2013-09-26 Thread Alexandre Julliard
would be a good idea. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 1/6] riched20: Implement ITextDocument_fnOpen.

2013-09-26 Thread Alexandre Julliard
o it. Also GetLastError won't do anything useful here. -- Alexandre Julliard julli...@winehq.org

Re: [2/3] gdi32: Return fake BBox when requested empty glyph metrics. (try 2)

2013-09-26 Thread Alexandre Julliard
; 6; > abc->abcB = (right - left) >> 6; > +if (abc->abcB == 0) > +abc->abcB = 1; > abc->abcC = adv - abc->abcA - abc->abcB; It would be a good idea to add tests for the ABC metrics too. -- Alexandre Julliard julli...@winehq.org

Re: (try 5)[1/4] imm32: Move thread data from TLSEntry to an internal list

2013-09-26 Thread Alexandre Julliard
_IGNORENOCONTEXT: > if (GetPropW(hWnd,szwWineIMCProperty)) You shouldn't be accessing thread data outside of the critical section. -- Alexandre Julliard julli...@winehq.org

Re: (try 4)[1/4] imm32: Move thread data from TLSEntry to an internal list

2013-09-25 Thread Alexandre Julliard
0060, blocked by 005c, retrying (60 sec) -- Alexandre Julliard julli...@winehq.org

Re: [2/5] winex11: Splitted functions X11DRV_FocusOut and X11DRV_ReparentNotify

2013-09-25 Thread Alexandre Julliard
doesn't make sense without it. -- Alexandre Julliard julli...@winehq.org

Re: (try 3) [1/4] imm32: Move thread data from TLSEntry to an internal list

2013-09-24 Thread Alexandre Julliard
rn FALSE; > +} > + > +if ((*thread_data)->defaultContext) /* someone beat us */ > +IMM_DestroyContext(defaultContext); > +else > +(*thread_data)->defaultContext = defaultContext; > +} > +return TRUE; > +} That's fairly inelegant, try to find a better way. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 3/5] wined3d: Introduce a function to initialize swapchain specific device state.

2013-09-23 Thread Alexandre Julliard
b=0x14e23c, rect_count=0, rects=(nil), draw_rect=0x32f9e0, flags=0x1, color=0x6875e2bc, depth=1.00, stencil=0) [/home/julliard/wine/wine/dlls/wined3d/device.c:219] in wined3d (0x0032f978) 1 0x686b0b67 wined3d_device_clear+0x136(device=0x142208, rect_count=0, rects=(nil), flags=0x1, c

Re: [1/3] winex11: Splitted functions X11DRV_FocusOut (try 2)

2013-09-23 Thread Alexandre Julliard
x27;t have any parent (which only has the disadvantage that wine > cannot track the correct window position). I think you really should make it work like the systray and keep track of the hierarchy. You'll run into a lot of hard to fix bugs otherwise. -- Alexandre Julliard julli...@winehq.org

Re: (resend)[3/4] imm32: use thread data from target HWND

2013-09-20 Thread Alexandre Julliard
; -thread_data = IMM_GetThreadData(0); > +thread_data = IMM_GetThreadDataForWindow(hWnd); > thread_data->defaultContext = defaultContext; > } You have multiple race conditions here. -- Alexandre Julliard julli...@winehq.org

Re: [1/2] oledb32: Correct DataLinks interface for win64

2013-09-20 Thread Alexandre Julliard
"typedef LONG COMPATIBLE_LONG;") > +cpp_quote("#endif") > +#else > +cpp_quote("#ifdef _WIN64") > +cpp_quote("typedef LONGLONG COMPATIBLE_LONG;") > +cpp_quote("#else") > +typedef LONG COMPATIBLE_LONG; > +cpp_quote("#endif") > +#endif You can't do that, _WIN64 is not meaningful in idl. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 3/5] mshtml: Keep moniker reference after start_binding call.

2013-09-18 Thread Alexandre Julliard
Error 6 -- Alexandre Julliard julli...@winehq.org

Re: [1/4] ws2_32: Use the struct information when the parameters are zero in WSASocket

2013-09-17 Thread Alexandre Julliard
type = lpProtocolInfo->iSocketType; > -if (protocol == FROM_PROTOCOL_INFO) > +if (protocol <= 0) > protocol = lpProtocolInfo->iProtocol; I don't see anything in the tests that would justify checking for negative values here. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 1/5] user32: Add a SetMinMaxInfo driver entry point.

2013-09-16 Thread Alexandre Julliard
to Windows APIs. Instead you should request the info when you need it. -- Alexandre Julliard julli...@winehq.org

Re: kernel32/tests: Add initial CreateFile2 tests based on the CreateFileW tests (try 2)

2013-09-16 Thread Alexandre Julliard
touch file.ok file.c:810: Tests skipped: CopyFile2 is not available file.c:1173: Tests skipped: Either no authority to volume, or is todo_wine for C:\users\julliard\Temp\ err=5 should be 3 file.c:1173: Tests skipped: Either no authority to volume, or is todo_wine for C:\users\julliard\Temp\re

Re: [PATCH 3/3] riched20: Add UTF8 support for EM_SETTEXTEX. (try 5)

2013-09-13 Thread Alexandre Julliard
ruct->codepage = CP_UTF8; > + } That struct belongs to the caller, you can't change it. -- Alexandre Julliard julli...@winehq.org

Re: ntdll: Add a file access test.

2013-09-13 Thread Alexandre Julliard
at they need to be moved to kernel32 > or that they are doing something wrong. Using kernel32 APIs in order to test the ntdll ones is fine. But a test that only calls kernel32 has no reason to be in ntdll. -- Alexandre Julliard julli...@winehq.org

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

2013-09-13 Thread Alexandre Julliard
Dmitry Timoshkov writes: > This matches what NtWriteFile does. > > I assume that this patch is in 'pending' state because of a test failure > caused > by 2/2, if the reason is different - please let me know. It would need some test cases for other file types. --

Re: [try3] gdi32: abc values remain the same despite any changes in layout direction or Viewport

2013-09-12 Thread Alexandre Julliard
elper_ABC(a) (winetest_set_location(__FILE__,__LINE__), 0) ? 0 : > helper_ABCWidths(hdc, glyphs, abc, abcw, abcf, a) Please avoid that sort of macro. You can pass a description string, or simply print the current extents in the helper function, so that we can figure out the failing code without r

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

2013-09-12 Thread Alexandre Julliard
Dmitry Timoshkov writes: > Alexandre Julliard wrote: > >> > This matches WriteFile behaviour and ensures that invalid parameters are >> > properly handled and fields in the OVERLAPPED structure are initialized. >> >> This is again causing test failur

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

2013-09-12 Thread Alexandre Julliard
Dmitry Timoshkov writes: > This matches WriteFile behaviour and ensures that invalid parameters are > properly handled and fields in the OVERLAPPED structure are initialized. This is again causing test failures. Please do a full test run before sending patches. -- Alexandre Julliard

Re: po: Add English (Philippines) resource (resend)

2013-09-11 Thread Alexandre Julliard
S.po $@ > + You can't create links in the source tree, and in any case this should be done directly in wrc, with some sort of alias mechanism. -- Alexandre Julliard julli...@winehq.org

Re: ntdll: Try application manifest path when searching for dependent assemblies

2013-09-10 Thread Alexandre Julliard
to use MAX_PATH you then have to check for overflow when building the string, which is probably worse. -- Alexandre Julliard julli...@winehq.org

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

2013-09-10 Thread Alexandre Julliard
Dmitry Timoshkov writes: > 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. At the cost of two extra seeks, plus introducin

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

2013-09-10 Thread Alexandre Julliard
Dmitry Timoshkov writes: > --- > dlls/ntdll/file.c | 31 +++ > 1 file changed, 15 insertions(+), 16 deletions(-) Why do you need that? It doesn't look to me like an improvement. -- Alexandre Julliard julli...@winehq.org

Re: xcopy: Add an explicit check to avoid an out of array access. access. (RESEND)

2013-09-10 Thread Alexandre Julliard
also did not > see a response. It can't happen (and removing the last char unconditionally is broken anyway). -- Alexandre Julliard julli...@winehq.org

Re: [1/5] ntdll: Add support to NtWriteFile for special offset -1. Take 3.

2013-09-10 Thread Alexandre Julliard
set ? offset->QuadPart : (off_t)-2 /* > FILE_USE_FILE_POINTER_POSITION */; > + > +if (off == (off_t)-1 /* FILE_WRITE_TO_END_OF_FILE */) > +off = lseek( unix_handle, 0, SEEK_END ); You are not supposed to change the position for the asynchronous case. -- Alexandre Julliard julli...@winehq.org

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

2013-09-09 Thread Alexandre Julliard
Dmitry Timoshkov writes: > --- > dlls/ntdll/file.c | 13 ++--- > dlls/ntdll/tests/file.c | 15 --- > 2 files changed, 10 insertions(+), 18 deletions(-) This is causing test failures all over the place. -- Alexandre Julliard julli...@winehq.org

Re: server: Add a serial event mask change counter.

2013-09-09 Thread Alexandre Julliard
ventmask | (serial->generation << 16); It would be better to return it as a separate field, particularly since eventmask is already an int. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 3/6] ws2_32: Fix parameters checking in WSADuplicateSocket

2013-09-09 Thread Alexandre Julliard
Bruno Jesus <00cp...@gmail.com> writes: > On Mon, Sep 9, 2013 at 6:39 AM, Alexandre Julliard > wrote: >> Bruno Jesus <00cp...@gmail.com> writes: >> >>> +fd = get_sock_fd( s, FILE_READ_DATA, NULL ); >>> +if (fd == -1) >>> +{ &g

Re: [PATCH 3/6] ws2_32: Fix parameters checking in WSADuplicateSocket

2013-09-09 Thread Alexandre Julliard
fd if you are not using it. The handle should be checked at the point where you are doing something with it. -- Alexandre Julliard julli...@winehq.org

Re: ntdll: Implement job objects. (try 3)

2013-09-07 Thread Alexandre Julliard
TODOs all over the place. -- Alexandre Julliard julli...@winehq.org

Re: aclui: Remove some unneeded header inclusions. (IWYU)

2013-09-06 Thread Alexandre Julliard
Amine Khaldi writes: > On 06/09/2013 16:28, Alexandre Julliard wrote: >> Amine Khaldi writes: >> >>> @@ -18,15 +18,7 @@ >>> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, >>> USA >>> */ >>> >&

Re: aclui: Remove some unneeded header inclusions. (IWYU)

2013-09-06 Thread Alexandre Julliard
nclude "winbase.h" > -#include "winuser.h" > -#include "winnt.h" > #include "aclui.h" That's not useful. The headers will be included anyway. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 2/3] ws2_32: Implement get socket option SO_PROTOCOL_INFO (try 3)

2013-09-06 Thread Alexandre Julliard
t; +} > +SERVER_END_REQ; You need to check the server return status and set the correct error code. -- Alexandre Julliard julli...@winehq.org

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

2013-09-06 Thread Alexandre Julliard
offset->QuadPart = lseek( unix_handle, 0, SEEK_END ); > + This looks very wrong, offset belongs to the caller. -- Alexandre Julliard julli...@winehq.org

Re: iphlpapi: Add AllocateAndGetTcpExTableFromStack() (try 6)

2013-09-05 Thread Alexandre Julliard
h is covered by test_GetExtendedTcpTable() > + */ The tests are supposed to test the behavior on Windows. The details of the Wine implementation are irrelevant. You can't assume that the functions share an implementation. -- Alexandre Julliard julli...@winehq.org

Re: ntdll/tests: Add tests for job objects.

2013-09-05 Thread Alexandre Julliard
x27;o','b','O','b','j','e','c','t',0 }; > + > +GetEnvironmentVariableW(envName, val, 32); > + > + if(lstrcmpW(envVal, val) == 0) > +/* Wait forever, we've been created for a process handle */ > +while(1) Sleep(INFINITE); > + > +SetEnvironmentVariableW(envName, envVal); > +} That's ugly. Again, check how child processes are handled in other tests. -- Alexandre Julliard julli...@winehq.org

Re: oledb32: Implement IDataSourceLocator get/put hWnd

2013-09-04 Thread Alexandre Julliard
2: Test failed: got 80040154 make[1]: *** [database.ok] Error 1 -- Alexandre Julliard julli...@winehq.org

Re: 0001-Fix-race-for-IOCTL_SERIAL_WAIT_ON_MASK.patch

2013-09-04 Thread Alexandre Julliard
piosb->Information = 0; > if (!(status = wait_on(hDevice, fd, hEvent, piosb, lpOutBuffer))) > sz = sizeof(DWORD); > +else if (status == STATUS_PENDING) > +return status; Status is not supposed to be set until th

Re: [3/6] ntdll: NtWriteFile should fail for overlapped IO on files if offset is negative.

2013-09-04 Thread Alexandre Julliard
uot;, status); > -todo_wine > ok(iob.Status == -1, "expected -1, got %#x\n", iob.Status); > -todo_wine > ok(iob.Information == -1, "expected -1, got %ld\n", iob.Information); A test for a non-magic negative value would be a good idea. -- Alexandre Julliard julli...@winehq.org

Re: ws2_32: Implement get socket option SO_PROTOCOL_INFO (try 2)

2013-09-03 Thread Alexandre Julliard
Bruno Jesus <00cp...@gmail.com> writes: > On Tue, Sep 3, 2013 at 3:16 PM, Bruno Jesus <00cp...@gmail.com> wrote: >> On Tue, Sep 3, 2013 at 3:04 PM, Alexandre Julliard >> wrote: >>> Bruno Jesus <00cp...@gmail.com> writes: >>> >>>> tr

Re: ws2_32: Implement get socket option SO_PROTOCOL_INFO (try 2)

2013-09-03 Thread Alexandre Julliard
Bruno Jesus <00cp...@gmail.com> writes: > try 2: > Narrow the loop for the specified protocol > Add a new test for invalid sockets Considering what WSAEnumProtocols does, the loop doesn't seem necessary at all. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 3/3] ws2_32: Implement get socket option SO_PROTOCOL_INFO

2013-09-02 Thread Alexandre Julliard
} > +break; > + } > +} > +} There's no reason to enumerate the protocols since you already know the one you want. -- Alexandre Julliard julli...@winehq.org

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

2013-08-30 Thread Alexandre Julliard
Dmitry Timoshkov writes: > Alexandre Julliard wrote: > >> >> > Printing complete lsr value in the log may help with diagnosing >> >> > test failures on Alexandre's machine. >> >> >> >> I don't see how, since TIOCSER_TEMT is

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

2013-08-30 Thread Alexandre Julliard
Dmitry Timoshkov writes: > Alexandre Julliard wrote: > >> > Printing complete lsr value in the log may help with diagnosing >> > test failures on Alexandre's machine. >> >> I don't see how, since TIOCSER_TEMT is the only defined bit. Do you >&

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

2013-08-30 Thread Alexandre Julliard
Dmitry Timoshkov writes: > Printing complete lsr value in the log may help with diagnosing > test failures on Alexandre's machine. I don't see how, since TIOCSER_TEMT is the only defined bit. Do you actually have a driver that returns other status? -- Alexandre Julliard julli...@winehq.org

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

2013-08-30 Thread Alexandre Julliard
again and compiles just fine here. What kind of build failure is that? You are using TIOCSER_TEMT outside of the corresponding ifdef. -- Alexandre Julliard julli...@winehq.org

Re: RFC: Mark dylib/mach-o on Mac OS X

2013-08-29 Thread Alexandre Julliard
André Hentschel writes: > Am 29.08.2013 23:15, schrieb Alexandre Julliard: >> André Hentschel writes: >> >>> Am 29.08.2013 19:52, schrieb André Hentschel: >>>> Hi, >>>> thank you both for the comments, i'll see what i can do. >>> &g

Re: RFC: Mark dylib/mach-o on Mac OS X

2013-08-29 Thread Alexandre Julliard
André Hentschel writes: > Am 29.08.2013 19:52, schrieb André Hentschel: >> Hi, >> thank you both for the comments, i'll see what i can do. > > How about that? I don't see the point at all. There's no reason to add all that complexity for a purely cosmetic d

Re: gdi32: Fixed Rectangle() rotation problem with GM_ADVANCED graphics mode.

2013-08-29 Thread Alexandre Julliard
Ralf Habacker writes: > see http://bugs.winehq.org/show_bug.cgi?id=34381 > --- > dlls/gdi32/painting.c | 18 -- > 1 Datei geändert, 16 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) This would have to be done in the drivers. -- Alexandre Julliard julli...@winehq.org

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

2013-08-28 Thread Alexandre Julliard
Dmitry Timoshkov writes: > 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 &&

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

2013-08-27 Thread Alexandre Julliard
0 comm.c:865: Test failed: WaitCommEvent used 1000 ms for waiting comm.c:1895: Tests skipped: interactive tests (set WINETEST_INTERACTIVE=1) make: *** [comm.ok] Error 5 -- Alexandre Julliard julli...@winehq.org

Re: ntdll: Store all 'comClass' attributes (try2)

2013-08-27 Thread Alexandre Julliard
> len) > +c = 1; > +} Actually, memcmp is not a good choice for comparing Unicode strings. It doesn't make a difference for ASCII-only strings, but it would still be cleaner to do it right. strncmpW is preferable (as long as you use it correctly...) -- Alexandre Julliard julli...@winehq.org

Re: Use tcdrain() instead of tcflush() to implement FlushFileBuffers() for a COM port.

2013-08-26 Thread Alexandre Julliard
Wolfgang Walter writes: > Am Montag, 26. August 2013, 17:13:46 schrieb Alexandre Julliard: >> >> You probably don't want to fail just because there's no unix fd. > > What is the correct behaviour if there ist no such handle? Should I only fail > in the ca

Re: Use tcdrain() instead of tcflush() to implement FlushFileBuffers() for a COM port.

2013-08-26 Thread Alexandre Julliard
k) { > +IoStatusBlock->u.Status = ret; > } This is an unrelated change and should be a separate patch, with tests (also for failures cases), -- Alexandre Julliard julli...@winehq.org

Re: ntdll: Store all 'comClass' attributes

2013-08-26 Thread Alexandre Julliard
Nikolay Sivov writes: > +while (min <= max) > +{ > +int n, c; > + > +n = (min+max)/2; > + > +c = strncmpW(olemisc_values[n].name, str, len); strncmp isn't enough. -- Alexandre Julliard julli...@winehq.org

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

2013-08-26 Thread Alexandre Julliard
Dmitry Timoshkov writes: > 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? Something like that, yes. -- Alexandre Julliard julli...@winehq.org

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

2013-08-26 Thread Alexandre Julliard
transmitted. It's a blocking call, you can't do that on the server side. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 4/6] wined3d: Enforce volume mapping restrictions

2013-08-23 Thread Alexandre Julliard
inside todo block: D3DXLoadVolumeFromMemory returned 0x8876086c, expected 0x8876086c make: *** [volume.ok] Error 1 -- Alexandre Julliard julli...@winehq.org

Re: server: Store full sized completion information on the server side.

2013-08-23 Thread Alexandre Julliard
status, unsigned int information ) > + apc_param_t information, unsigned int status ) There's no reason to change the parameter order. That's only adding noise to the patch, and potential bugs. -- Alexandre Julliard julli...@winehq.org

Re: oleaut32/tests: Some tests for LoadRegTypeLib() with activated context

2013-08-22 Thread Alexandre Julliard
iled with error 0x8007000e wine: Unhandled page fault on read access to 0x at address 0x68640714 (thread 003a), starting debugger... -- Alexandre Julliard julli...@winehq.org

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

2013-08-21 Thread Alexandre Julliard
Dmitry Timoshkov writes: > Alexandre Julliard wrote: > >> > +if (type == FD_TYPE_FILE) >> > +{ >> > +io_status->u.Status = status; >> > +io_status->Information = total; >> > +} >&

Re: wined3d: Add a function for allocating aligned resource, memory (try 3)

2013-08-21 Thread Alexandre Julliard
0x0032f7bc: 687c05d8 0001 0x0032f7cc: 4d430003 0x0032f7dc: 4d430001 00164268 0x0032f7ec: 0010 Backtrace: =>0 0x7bc4a5cf HEAP_CreateFreeBlock+0x36f(subheap=0x110014, ptr=0x164268, size

Re: [PATCH 2/2] msvcrt: Fix lookahead buffer usage on pipes

2013-08-21 Thread Alexandre Julliard
ailed: read returned 2, expected 1 make[1]: *** [file.ok] Error 1 -- Alexandre Julliard julli...@winehq.org

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

2013-08-21 Thread Alexandre Julliard
his would have to be specific to files. -- Alexandre Julliard julli...@winehq.org

Re: kernel32: Fix required buffer length for locale values from registry

2013-08-20 Thread Alexandre Julliard
Nikolay Sivov writes: > http://bugs.winehq.org/show_bug.cgi?id=32169 > > Locale info to override is stored as REG_SZ and supposed to be > null-terminated, They are supposed to, but it's not guaranteed. The code should be able to cope with non-terminated strings. -- Alexand

Re: [PATCH 10/11] widl: Set pointer_size according to host's pointer-size.

2013-08-19 Thread Alexandre Julliard
Kai Tietz writes: > 2013/8/19 Alexandre Julliard : >> Kai Tietz writes: >> >>> diff --git a/tools/widl/widl.c b/tools/widl/widl.c >>> index 5df99fc..6d8ec87 100644 >>> --- a/tools/widl/widl.c >>> +++ b/tools/widl/widl.c >>> @@ -139,7

Re: msxml3: Defer the conversion of XPath expressions to UTF-8. (try 4)

2013-08-19 Thread Alexandre Julliard
on that does the same with > heap_realloc and wide strings (heap_strcatW in msxml_private.h.) That's a very inefficient way to build a string. Adding this as a helper is even worse since it will encourage other places to use it too. Please try to allocate a large enough buffer from the start, or if

Re: [PATCH 10/11] widl: Set pointer_size according to host's pointer-size.

2013-08-19 Thread Alexandre Julliard
gt; +unsigned int pointer_size = sizeof(void*); > syskind_t typelib_kind = sizeof(void*) == 8 ? SYS_WIN64 : SYS_WIN32; This is wrong, the host pointer size shouldn't have any influence on the generated code. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 1/6] msvcrt: Use LOCK_ENV locking in _chdrive and do validatation of input argument.

2013-08-16 Thread Alexandre Julliard
Kai Tietz writes: > 2013/8/16 Alexandre Julliard : >> Kai Tietz writes: >> >>> diff --git a/dlls/msvcrt/dir.c b/dlls/msvcrt/dir.c >>> index 44802b3..3b9e3c7 100644 >>> --- a/dlls/msvcrt/dir.c >>> +++ b/dlls/msvcrt/dir.c >>>

Re: ntdll: empty APC queue before starting an application

2013-08-16 Thread Alexandre Julliard
t(); > + > wine_switch_to_stack( start_process, kernel_start, > NtCurrentTeb()->Tib.StackBase ); This would have to run on the thread stack. Also please try to add some tests. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 1/6] msvcrt: Use LOCK_ENV locking in _chdrive and do validatation of input argument.

2013-08-16 Thread Alexandre Julliard
-1; >} > + > + _unlock (_ENV_LOCK); > + >return 0; > } Please add test cases at least for the error values. -- Alexandre Julliard julli...@winehq.org

Re: Sort the AUTHORS file by their last names.

2013-08-16 Thread Alexandre Julliard
provide a script that sorts by last name. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 01/11] widl: New option --rt for enabling rt's specific language extensions.

2013-08-16 Thread Alexandre Julliard
t's specific > language extensions. > > --- > tools/widl/widl.c |6 ++ > tools/widl/widl.h |1 + > 2 files changed, 7 insertions(+), 0 deletions(-) Please update the usage message and the manpage accordingly. -- Alexandre Julliard julli...@winehq.org

Re: configure.ac: allow disabling winemac.drv (try 2)

2013-08-15 Thread Alexandre Julliard
ithout-v4l],[do not use v4l1 (v4l > support)])) > +AC_ARG_WITH(winemac, AS_HELP_STRING([--without-winemac],[do not build > native Mac (Cocoa) driver])) It should be --disable-winemac.drv, and it should work fine already, same as with any other dll. -- Alexandre Julliard julli...@winehq.org

Re: mscoree: Redirect .NET 1.0 to .NET 2.0

2013-08-15 Thread Alexandre Julliard
n is L"v1.1.4322" , expected L"v2.0.50727" mscoree.c:187: Test failed: GetRequestedRuntimeInfo returned 80131700 mscoree.c:188: Test failed: version is L"" , expected L"v2.0.50727" make: *** [mscoree.ok] Error 3 -- Alexandre Julliard julli...@winehq.org

  1   2   3   4   5   6   7   8   9   10   >