Re: [ros-dev] [ros-diffs] [tkreuzer] 67709: [D3DX9_36/WINED3D] - Remove useless copysignf invocation and the wrong defines for it - BrokenHacksOnTopOfBrokenCode--; - Should be sent upstream

2015-05-14 Thread Thomas Faber
On 2015-05-14 06:00, tkreu...@svn.reactos.org wrote: -int sign = (copysignf(1, in) 0); +int sign = (in 0); -if (copysignf(1.0f, value) 0.0f) +if (value 0.0f) ++idx; I believe the behavior would be different here for negative zero: copysignf(1.0f, -0.0f)

Re: [ros-dev] [ros-diffs] [tkreuzer] 67718: [CRT] Add simple C implementations for acosf, ceilf, floorf, fmodf and fix sqrtf

2015-05-16 Thread Thomas Faber
On 2015-05-14 15:44, tkreu...@svn.reactos.org wrote: +_Check_return_ +float +__cdecl +ceilf( +_In_ float x) +{ +return (float)ceilf((double)x); +} +_Check_return_ +float +__cdecl +floorf( +_In_ float x) +{ +return (float)floorf((double)x); +} Did you mean to call ceil/floor

Re: [ros-dev] [ros-diffs] [tkreuzer] 67709: [D3DX9_36/WINED3D] - Remove useless copysignf invocation and the wrong defines for it - BrokenHacksOnTopOfBrokenCode--; - Should be sent upstream

2015-05-14 Thread Thomas Faber
Yes it did. Except that macro was a ROS-Diff in the first place ;) On 2015-05-14 11:12, David Quintana (gigaherz) wrote: Judging by the involved macro, if -0.0 is not 0, then the old code had exactly the same bug. On 14 May 2015 at 14:50, Thomas Faber thomas.fa...@reactos.org wrote: On 2015

Re: [ros-dev] [ros-diffs] [akhaldi] 67683: [SHELL32] Don't provide the format option when the volume is read only. By Barrett Karish. CORE-9530

2015-05-12 Thread Thomas Faber
On 2015-05-12 06:57, akha...@svn.reactos.org wrote: +/* FIXME: ntifs.h */ +#define FILE_READ_ONLY_VOLUME 0x0008 This should go in ndk/iotypes.h inside an NTOS_MODE_USER ifdef. ___ Ros-dev mailing list Ros-dev@reactos.org

Re: [ros-dev] Writing an API-Test for localspl.dll

2015-06-07 Thread Thomas Faber
You can register your test as a service to be able to run it as SYSTEM. A bunch if Wine's tests do this, e.g. advapi32:service and services:service. To solve the other problem, one option might be to inject a thread into the spooler process and run your test code there. Not sure if we already

Re: [ros-dev] Name of builders/testers in buildbot

2015-06-14 Thread Thomas Faber
Build GCCLin_x86 Release now seems to run on every commit AND once a day, whereas Build GCCWin_x86 never runs automatically. Dunno if this was a result of these changes; but the commit trigger should probably go to the latter one? Thanks. On 2015-06-03 21:03, Colin Finck wrote: Am 23.05.2015

Re: [ros-dev] [ros-diffs] [akhaldi] 68069: [OLE32_APITEST] Add test for IInitializeSpy. By Mark Jansen. See ROSTESTS-175 for more details.

2015-06-13 Thread Thomas Faber
For future reference: (1) It's a bad idea to move something to a different file and edit it at the same time (2) Those constructor parameters really should be optional. The interface was trivial before, and it's a good idea to keep it that way. (I'm really only saying this because it

Re: [ros-dev] [ros-diffs] [akhaldi] 67940: [TCPIP] Identify TCP/IP driver as version 4. By Lee Schroeder. CORE-9744

2015-05-28 Thread Thomas Faber
--- trunk/reactos/drivers/network/tcpip/tcpip.rc [iso-8859-1] (original) +++ trunk/reactos/drivers/network/tcpip/tcpip.rc [iso-8859-1] Thu May 28 10:31:38 2015 @@ -1,5 +1,5 @@ #define REACTOS_VERSION_DLL -#define REACTOS_STR_FILE_DESCRIPTION TCP/IP protocol driver +#define

Re: [ros-dev] [ros-diffs] [ekohl] 68313: [NTOSKRNL] Add CmpDestroySecurityCache() and CmpDestroyHiveViewList() stubs and call them in CmpDestroyHive and CmUnloadKey(). CORE-6492 #resolve #comment Than

2015-06-29 Thread Thomas Faber
On 2015-06-29 20:26, ek...@svn.reactos.org wrote: Modified: trunk/reactos/ntoskrnl/config/cmmapvw.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmmapvw.c?rev=68313r1=68312r2=68313view=diff ==

Re: [ros-dev] [ros-diffs] [hbelusca] 68754: [NTVDM]: Initialize the PSP' memory control block owner name with the file name (without extension, and up to 8 chars) of the started program.

2015-08-18 Thread Thomas Faber
On 2015-08-18 14:26, hbelu...@svn.reactos.org wrote: [NTVDM]: Initialize the PSP' memory control block owner name with the file name (without extension, and up to 8 chars) of the started program. Shouldn't that use GetShortPathName to make sure the program can find itself on disk? :p

Re: [ros-dev] [ros-diffs] [bfreisen] 68792: [HHPCOMP] Improve functionality of Windows MSVC build. Based on a WIP patch by Michael Fritscher. See CORE-10019.

2015-08-23 Thread Thomas Faber
On 2015-08-22 13:16, bfrei...@svn.reactos.org wrote: [HHPCOMP] Improve functionality of Windows MSVC build. Based on a WIP patch by Michael Fritscher. See CORE-10019. +/* if O_BINARY is not defined, the system is probably not expecting any such flag */ +#ifndef O_BINARY +#define O_BINARY 0

Re: [ros-dev] [ros-diffs] [dreimer] 68645: [shell32] Change Trash to Recycle Bin by Lee Schroeder CORE-8391 #resolve #comment Committed the big one with changes to all RC files, because it's the right

2015-08-09 Thread Thomas Faber
Well... since you asked... Really good reason not to: if something's not broken, don't fix it. Really good reason not to: if everything works fine and the user experience is generally Windows-like, we should NOT try to make things more Windows-like. On the contrary. Different is good, both in

Re: [ros-dev] [ros-diffs] [dreimer] 68672: [BROWSEUI] Address is untranslatable by Adam Stachowicz CORE-9977 #resolve #comment Committed (with a Unicode fix), thx ^^

2015-08-10 Thread Thomas Faber
On 2015-08-10 18:52, drei...@svn.reactos.org wrote: --- trunk/reactos/dll/win32/browseui/addressband.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/browseui/addressband.cpp [iso-8859-1] Mon Aug 10 16:52:40 2015 @@ -93,7 +93,11 @@ pdbi-ptActual.y = 22; } if

Re: [ros-dev] [ros-diffs] [cwittich] 68673: [MSAFD] don't trace an uninitialized UNICODE_STRING

2015-08-10 Thread Thomas Faber
On 2015-08-10 19:54, cwitt...@svn.reactos.org wrote: @@ -40,8 +40,8 @@ PLIST_ENTRY Helpers; INT Status; -TRACE(AddressFamily %p, SocketType %p, Protocol %p, Group %u, Flags %lx, TransportName %wZ, HelperDllContext %p, HeplperDllData %p, Events

Re: [ros-dev] [ros-diffs] [dreimer] 68645: [shell32] Change Trash to Recycle Bin by Lee Schroeder CORE-8391 #resolve #comment Committed the big one with changes to all RC files, because it's the right

2015-08-09 Thread Thomas Faber
is universal amongst English speakers. In Australia we say garbage (not trash) for actual waste and recycling for recyclables. On Sun, Aug 9, 2015 at 7:46 PM, Thomas Faber thomas.fa...@reactos.org wrote: Well... since you asked... Really good reason not to: if something's not broken, don't fix

Re: [ros-dev] [ros-diffs] [gedmurphy] 69650: The c++ bool is 1 byte, not 4. Thanks Thomas

2015-11-03 Thread Thomas Faber
It makes a difference because m_RefreshPending was initialized to 0 by the constructor, but the three bytes behind it were not, so the first cmpxchg could fail. Plus of course if someone decided to add another bool or a char array or whatever at the end, that would get overwritten. On 2015-11-03

Re: [ros-dev] [ros-diffs] [gedmurphy] 69650: The c++ bool is 1 byte, not 4. Thanks Thomas

2015-11-03 Thread Thomas Faber
On 2015-11-03 22:02, Timo Kreuzer wrote: > m_RefreshPending is a 32 bit BOOL and the constructor will initialize it > completely with 0. > If it was initializing only the 1st byte, the new code would still be wrong, > since it makes no difference. > InterlockedCompareExchange will exchange 32

Re: [ros-dev] [ros-diffs] [sginsberg] 68888: - Remove all NT_ASSERT from the kernel and replace with good old ASSERT, for ease of debugging, especially for tests run on the build servers. There is no

2015-08-31 Thread Thomas Faber
I would understand a commit that does the exact opposite; I don't understand this one. How exactly is ASSERT easier to debug? NT_ASSERT on GCC should essentially be the same as ASSERT On MSVC/Windbg you get lots of advantages: - you can ignore specific asserts - you can set different event

Re: [ros-dev] [ros-diffs] [hbelusca] 68975: [VSSAPI] Compile the THISCALL calling convention support only for x86. On x64, we are automatically in THISCALL. Also I suggest we turn this file (and maybe

2015-09-03 Thread Thomas Faber
On 2015-09-04 03:14, hbelu...@svn.reactos.org wrote: > Also I suggest we turn this file (and maybe also > /lib/sdk/crt/except/i386/cpp.s) into a "msvc-thiscall.c" as it is already > done in some other DLLs (like in ole32, riched20). ole32 and riched20 don't export mangled names. MSVC ignores

Re: [ros-dev] [ros-diffs] [tfaber] 69236: [MSFS] - Use a NULL timeout for infinite waits instead of waiting for 100 ns. CORE-10188 #resolve - Wait for available read data in user mode to handle thread

2015-09-16 Thread Thomas Faber
You mean KernelMode->UserMode in the KeWaitForSingleObject call? The only purpose of this wait is to fulfill a user request (namely a read operation). If the thread performing the read is terminated, there's no reason to stick around in msfs until data is available in the mailslot. The wait should

Re: [ros-dev] [ros-diffs] [tfaber] 69296: [KMTESTS] - Add missing OBJ_KERNEL_HANDLE - OBJ_KERNEL_HANDLE in user mode has no effect... no reason to make a define around it CORE-10207

2015-09-23 Thread Thomas Faber
Oh? I'll need to add a test for that then, thanks. What does Windows's RTL do, then? I know in XP/2003 it might just hand out user handles, but e.g. on Win7 that would cause verifier to bugcheck. On 2015-09-20 20:51, Alex Ionescu wrote: Actually, in XP, OBJ_KERNEL_HANDLE Did work, and gave

Re: [ros-dev] [ros-diffs] [rnaumann] 70314: [EXPLORER]Initialize the propInfo structure before using it. Spotted by Mark Jansen. See CORE-10560

2015-12-09 Thread Thomas Faber
On 2015-12-08 23:54, rnaum...@svn.reactos.org wrote: > --- trunk/reactos/base/shell/explorer/trayprop.cpp[iso-8859-1] (original) > +++ trunk/reactos/base/shell/explorer/trayprop.cpp[iso-8859-1] Tue Dec 8 > 22:54:33 2015 > @@ -338,7 +338,7 @@ > VOID > DisplayTrayProperties(IN HWND

Re: [ros-dev] [ros-diffs] [gedmurphy] 70408: [NTOSKRNL] - Raise the IRQL when enumerating device lists so it doesn't get edited mid-listing - Don't hardcode the pointer size when checking the buffer s

2015-12-29 Thread Thomas Faber
size > > Yes this should be a spinlock involved instead, for example the > "LockQueueIoDatabaseLock" (queued) spinlock that we already use in other > places in the code. > > -----Message d'origine- > De : Ros-dev [mailto:ros-dev-boun...@reactos.org] De la part de

Re: [ros-dev] [ros-diffs] [tkreuzer] 70464: [WIN32K] Properly check the bitmap size in IntSetDIBits, taking into account that it might be set to 0, then we have to calculate it ourselves. Fixes a cras

2016-01-01 Thread Thomas Faber
Timo, this is causing testbot to freak out since it now crashes during an apitest. Could you look into it? Thanks. On 2015-12-29 21:28, tkreu...@svn.reactos.org wrote: > Author: tkreuzer > Date: Tue Dec 29 20:28:23 2015 > New Revision: 70464 > > URL:

Re: [ros-dev] [ros-diffs] [gedmurphy] 70408: [NTOSKRNL] - Raise the IRQL when enumerating device lists so it doesn't get edited mid-listing - Don't hardcode the pointer size when checking the buffer s

2015-12-29 Thread Thomas Faber
Uhm... raising the IRQL is not a synchronization mechanism. Should there be a spinlock involved? On 2015-12-23 12:26, gedmur...@svn.reactos.org wrote: > Author: gedmurphy > Date: Wed Dec 23 11:26:28 2015 > New Revision: 70408 > > URL: http://svn.reactos.org/svn/reactos?rev=70408=rev > Log: >

Re: [ros-dev] I can't debug CoInitialize function

2016-06-09 Thread Thomas Faber
On 2016-06-09 12:20, Yonggang Chen wrote: > After building ReactOS and Rostests successfully, I can't debug CoInitialize > function through Visual Studio 2015. It seems Visual Studio thinks I'm using > their CoInitialize of Windows kernel. That's because you _are_ using Windows's version! :) The

Re: [ros-dev] [ros-diffs] [hbelusca] 71524: [SHELL32] - Minor stylistic whitespace changes. - Use 'IDA_DESKBROWSER' instead of hardcoding its value. - The shell progman window uses the COLOR_DESKTOP a

2016-06-05 Thread Thomas Faber
On 2016-06-05 01:29, hbelu...@svn.reactos.org wrote: > -rcDesk.left = GetSystemMetrics(SM_XVIRTUALSCREEN); > -rcDesk.top = GetSystemMetrics(SM_YVIRTUALSCREEN); > -rcDesk.right = rcDesk.left + GetSystemMetrics(SM_CXVIRTUALSCREEN); > -rcDesk.bottom = rcDesk.top +

Re: [ros-dev] [ros-diffs] [zhu] 71644: Implemented IRQ cancelling for listen() and connect() calls.

2016-06-20 Thread Thomas Faber
On 2016-06-15 12:10, z...@svn.reactos.org wrote: --- branches/GSoC_2016/lwIP/drivers/network/tcpip/main.c[iso-8859-1] (original) +++ branches/GSoC_2016/lwIP/drivers/network/tcpip/main.c[iso-8859-1] Wed Jun 15 19:10:40 2016 @@ -384,7 +384,9 @@ Quickie:

Re: [ros-dev] [ros-diffs] [hbelusca] 71695: [SUBST] - Update the resource program description. - Convert to full UNICODE. - Use Win32 functions where possible. - Factor-out the usage of QueryDosDevice

2016-06-29 Thread Thomas Faber
On 2016-06-29 02:38, hbelu...@svn.reactos.org wrote: > +if (!CharCount && (Result == ERROR_INSUFFICIENT_BUFFER)) > +{ > +/* Reallocate the buffer with double size */ > +dwSize *= 2; > +tmp = (PWSTR)HeapReAlloc(GetProcessHeap(), 0, lpTargetPath, dwSize * >

Re: [ros-dev] [ros-diffs] [hbelusca] 71692: [SUBST]: CORE-10681 #comment Apply part of Peter Hater's patch proposed in CORE-10681, that is, fixing the usage of QueryDosDevice API, but without the new

2016-06-29 Thread Thomas Faber
On 2016-06-28 21:21, hbelu...@svn.reactos.org wrote: > --- trunk/reactos/base/system/subst/subst.c [iso-8859-1] (original) > +++ trunk/reactos/base/system/subst/subst.c [iso-8859-1] Tue Jun 28 > 19:21:08 2016 > @@ -75,81 +75,71 @@ > if (_tcslen(Drive) > 2) > return FALSE; > >

Re: [ros-dev] Error trying to checkout reactos sources

2016-02-24 Thread Thomas Faber
The important part is to remove "svn/" from the URI because that's ViewVC, and not the actual SVN repository. On 2016-02-24 22:49, Thomas Schweikle wrote: > Hi! > I can't try that, because I am bound to use http(s) to check out – no > Internet access without using a proxy … :-( > > 2016-02-24

Re: [ros-dev] [ros-diffs] [tfaber] 71129: [NTOS:WMI] - Avoid a memory leak in failure case of WmipGetRawSMBiosTableData. CORE-11095 #resolve

2016-04-09 Thread Thomas Faber
That should have included "Patch by Víctor Martínez Calvo. CID 1322162." On 2016-04-09 18:16, tfa...@svn.reactos.org wrote: > Author: tfaber > Date: Sat Apr 9 16:16:12 2016 > New Revision: 71129 > > URL: http://svn.reactos.org/svn/reactos?rev=71129=rev > Log: > [NTOS:WMI] > - Avoid a memory

Re: [ros-dev] [ros-diffs] [pschweitzer] 71032: [NTOSKRNL] Fix build. Seriously... GCC, you allow this?!

2016-03-21 Thread Thomas Faber
On 2016-03-20 20:30, pschweit...@svn.reactos.org wrote: > Seriously... GCC, you allow this?! Apparently this is valid in newer C++ standards, so GCC allows it also for C. It will warn with -pedantic, which is probably too... pedantic for our code base unfortunately ;)

Re: [ros-dev] [GSOC] Fully Integrate lwIP

2016-03-24 Thread Thomas Faber
Hey Valentin, thanks for your proposal and your interest in the project. I'm hopeful we'll be able to get you some feedback tomorrow. As for you build problem, make sure "find" refers to %windir%\system32\find.exe. In particular, MSYS, cygwin or similar environments come with a Unix-style 'find'

Re: [ros-dev] [ros-diffs] [hbelusca] 70869: [AUTOCHK][CHKDSK]: Minor fixes / formatting. Really add chkdsk to build. [FMIFS]: Quickly implement the chkdsk function, the same way as it is done for the

2016-03-03 Thread Thomas Faber
On 2016-03-03 01:36, hbelu...@svn.reactos.org wrote: > @@ -160,9 +163,9 @@ > > switch (argv[i][1]) > { > -case L'?': > -Usage(argv[0]); > -break; > +// case L'?': > +

Re: [ros-dev] [ros-diffs] [ekohl] 71085: [NETAPI32] DsEnumerateDomainTrustsW missing in netapi32.dll. Patch by Jared Smudde. CORE-11056 #resolve #comment Thanks a lot!

2016-03-31 Thread Thomas Faber
On 2016-03-31 23:12, ek...@svn.reactos.org wrote: > +DWORD WINAPI DsEnumerateDomainTrustsW(LPWSTR ServerName, ULONG Flags, > PDS_DOMAIN_TRUSTSW* Domains, PULONG DomainCount) > +{ > +FIXME("(%s, %x, %p, %p): stub\n", ServerName, Flags, Domains, > DomainCount); > +return

Re: [ros-dev] [ros-diffs] [spetreolle] 71188: [NDIS] Silence a debug output. CORE-11137 #resolve

2016-04-24 Thread Thomas Faber
On 2016-04-23 21:09, spetreo...@svn.reactos.org wrote: > [NDIS] > Silence a debug output. > CORE-11137 #resolve > --- trunk/reactos/drivers/network/ndis/ndis/protocol.c[iso-8859-1] > (original) > +++ trunk/reactos/drivers/network/ndis/ndis/protocol.c[iso-8859-1] > Sat Apr 23

Re: [ros-dev] [ros-diffs] [akhaldi] 71183: [CLASSPNP] Fix MSVC build. Brought to you by Timo.

2016-04-24 Thread Thomas Faber
On 2016-04-20 14:16, akha...@svn.reactos.org wrote: > [CLASSPNP] Fix MSVC build. Brought to you by Timo. > --- trunk/reactos/drivers/storage/classpnp/class.c[iso-8859-1] (original) > +++ trunk/reactos/drivers/storage/classpnp/class.c[iso-8859-1] Wed Apr 20 > 12:16:16 2016 > @@ -877,7

Re: [ros-dev] [ros-diffs] [tkreuzer] 60701: [NTOSKRNL] - Introduce a new and faster way to return to kernel mode from traps by using a ret 8 instruction instead of an iret. - Make use of KiUserTrap wh

2016-04-14 Thread Thomas Faber
Looks like we've encountered an issue with this KiTrapReturnNoSegmentsRet8 approach. As seen in https://jira.reactos.org/browse/CORE-5, when a large number of interrupts happen, this will cause us to run out of kernel stack. Since the popfd / ret 8 steps do not happen atomically, interrupts

Re: [ros-dev] [ros-diffs] [gedmurphy] 72178: [FLTLIB] - Stub out fltlib.dll. - Add basic implementations for FilterLoad and FilterUnload - Remove the wine code, this lib talks directly to fltmgr.sys a

2016-08-11 Thread Thomas Faber
On 2016-08-10 00:10, gedmur...@svn.reactos.org wrote: > +/* Calc and allocate a buffer to hold our filter name */ > +BufferLength = wcslen(lpFilterName) * sizeof(WCHAR); > +FilterName = RtlAllocateHeap(GetProcessHeap(), > + 0, > +

Re: [ros-dev] [ros-diffs] [zhu] 71823: Fixed crash on client and server exit: Corrected some NULL data marking and checking. Moved some cleanup code so they actually execute on function failure (incom

2016-07-05 Thread Thomas Faber
Comments inline. On 2016-07-05 20:35, z...@svn.reactos.org wrote: > --- branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/address.c > [iso-8859-1] (original) > +++ branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/address.c > [iso-8859-1] Tue Jul 5 18:35:17 2016 > @@ -357,15

Re: [ros-dev] [ros-diffs] [hbelusca] 71829: [CLIPBRD]: Use NULL for null pointer. [EVENTVWR]: Add folder icons (needed for later).

2016-07-05 Thread Thomas Faber
Can't event viewer load those icons from shell32 (much like regedit should)? On 2016-07-06 01:42, hbelu...@svn.reactos.org wrote: > Author: hbelusca > Date: Tue Jul 5 23:42:40 2016 > New Revision: 71829 > > URL: http://svn.reactos.org/svn/reactos?rev=71829=rev > Log: > [CLIPBRD]: Use NULL for

Re: [ros-dev] [ros-diffs] [zhu] 71865: Structural, style, correctness fixes.

2016-07-09 Thread Thomas Faber
On 2016-07-08 19:52, z...@svn.reactos.org wrote: > --- branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/address.c > [iso-8859-1] (original) > +++ branches/GSoC_2016/lwIP-tcpip/drivers/network/tcpip/address.c > [iso-8859-1] Fri Jul 8 17:52:42 2016 > @@ -33,6 +33,8 @@ > static

Re: [ros-dev] [ros-diffs] [hbelusca] 73895: [NTGDI]: Few fixes & hacks for NtGdiGetGlyphIndicesW, see CORE-12825: - (Fix) Check for integer count overflow (per Thomas suggestion), - (Hack#1) Signal th

2017-02-24 Thread Thomas Faber
On 2017-02-24 02:52, hbelu...@svn.reactos.org wrote: @@ -4419,12 +4422,31 @@ LPCWSTR UnSafepwc = pwc; LPWORD UnSafepgi = pgi; -if ((!UnSafepwc) && (!UnSafepgi)) return cwc; - -if ((UnSafepwc == NULL) || (UnSafepgi == NULL)) +/* Check for integer overflow */ +if (cwc &

Re: [ros-dev] [ros-diffs] [ekohl] 73795: [NTOSKRNL] Implement IopGetDeviceRelations().

2017-02-13 Thread Thomas Faber
On 2017-02-13 23:38, ek...@svn.reactos.org wrote: > +_SEH2_TRY > +{ > +Relations = RelationsData->Relations; > +BufferSize = RelationsData->BufferSize; > +Buffer = RelationsData->Buffer; > + > +ProbeForWrite(RelationsData->Buffer, > +

Re: [ros-dev] MASM using longer opcode sequences than GAS

2017-01-17 Thread Thomas Faber
"ASSUME DS:.text" allows the assembler to use a smaller addressing mode -- but then also (silently) refuses to use 32 bit memory operands. E.g. mov ds:[01234h], ax mov ds:[012345678h], ax becomes 6: a3 34 12mov%ax,0x1234 9: a3 78 56mov

Re: [ros-dev] [ros-diffs] [dchapyshev] 72655: [NtUser] Try to fix tests for user32:EnumDisplaySettings

2016-09-11 Thread Thomas Faber
I've seen like 4 people change this stuff recently and not one of them got it 100% right. So here are the rules for how to use probes and SEH: * Probe pointers before accessing them. This ensures you're not reading kernel mode memory (and does pretty much nothing else) * Never access user mode

Re: [ros-dev] [ros-diffs] [cwittich] 72792: [CRYPTNET] disable broken code

2016-09-24 Thread Thomas Faber
Could you elaborate on what makes it broken? Link to a bug perhaps? On 2016-09-24 13:39, cwitt...@svn.reactos.org wrote: > Author: cwittich > Date: Sat Sep 24 11:39:17 2016 > New Revision: 72792 > > URL: http://svn.reactos.org/svn/reactos?rev=72792=rev > Log: > [CRYPTNET] disable broken code >

Re: [ros-dev] [ros-diffs] [cwittich] 72792: [CRYPTNET] disable broken code

2016-09-24 Thread Thomas Faber
mitted a better fix. > > > Am 24.09.2016 um 13:56 schrieb Thomas Faber: >> Could you elaborate on what makes it broken? Link to a bug perhaps? >> >> On 2016-09-24 13:39, cwitt...@svn.reactos.org wrote: >>> Author: cwittich >>> Date: Sat Sep 24 11:3

Re: [ros-dev] [ros-diffs] [akhaldi] 72908: [WS2_32_APITEST] Add tests for getnameinfo. By Peter Hater. CORE-8549

2016-10-05 Thread Thomas Faber
ests > + * LICENSE: GPLv2+ - See COPYING in the top level directory > + * PURPOSE: Test for getaddrinfo > + * PROGRAMMER: Thomas Faber <thomas.fa...@reactos.org> > + */ Thanks for the credit, but I don't think I deserve it ;)

Re: [ros-dev] [ros-diffs] [janderwald] 72725: [USBAUDIO] - start implementing init routines - not yet added to build

2016-09-18 Thread Thomas Faber
On 2016-09-18 16:24, janderw...@svn.reactos.org wrote: > +NTSTATUS > +SubmitUrbSync( > +IN PKSDEVICE Device, > +IN PURB Urb) > +{ > +PIRP Irp; > +KEVENT Event; > +PDEVICE_EXTENSION DeviceExtension; > +IO_STATUS_BLOCK IoStatus; > +PIO_STACK_LOCATION IoStack; > +

Re: [ros-dev] [ros-diffs] [hbelusca] 72751: [SECUR32][NTOS]: Update the LSA export signatures for the functions that are implemented in the "lsalib" library. [LSALIB] - Add old-school annotations (as

2016-09-21 Thread Thomas Faber
On 2016-09-21 01:43, hbelu...@svn.reactos.org wrote: > @@ -300,25 +268,53 @@ > * @implemented > */ > NTSTATUS > -WINAPI > -LsaRegisterLogonProcess(PLSA_STRING LsaLogonProcessName, > -PHANDLE Handle, > -PLSA_OPERATIONAL_MODE OperationalMode) > -{

Re: [ros-dev] [ros-diffs] [gedmurphy] 72595: [FLTMGR] - Add stubs for context registration - Add dispatch and device control handlers - Implement the load IOCTL. We can now load minifilters with 'fltm

2016-09-07 Thread Thomas Faber
On 2016-09-06 18:59, gedmur...@svn.reactos.org wrote: > +NTSTATUS > +HandleLoadUnloadIoctl(_In_ PDEVICE_OBJECT DeviceObject, > + _Inout_ PIRP Irp) > +{ > +PIO_STACK_LOCATION StackPtr; > +UNICODE_STRING Name; > +PFILTER_NAME FilterName; > +ULONG BufferLength; >

Re: [ros-dev] [ros-diffs] [gedmurphy] 72594: [FLTMGR] - Implement FltLoadFilter and stub FltUnloadFilter - Register contexts if the caller requests (coming later) - Stubpliment FltStartFiltering

2016-09-07 Thread Thomas Faber
On 2016-09-06 18:47, gedmur...@svn.reactos.org wrote: > @@ -116,12 +150,21 @@ > InitializeListHead(>PortList.mList); > Filter->PortList.mCount = 0; > > +/* We got this far, assume success from here */ > +Status = STATUS_SUCCESS; > + > /* Check if the caller requested any

Re: [ros-dev] [ros-diffs] [gadamopoulos] 72398: [SHELL32] - Fail to delete any file if one is invalid. - Patch by andy-123 CORE-9959

2016-08-28 Thread Thomas Faber
On 2016-08-20 11:43, gadamopou...@svn.reactos.org wrote: > --- trunk/reactos/dll/win32/shell32/shlfileop.cpp [iso-8859-1] (original) > +++ trunk/reactos/dll/win32/shell32/shlfileop.cpp [iso-8859-1] Sat Aug 20 > 09:43:09 2016 > @@ -1480,6 +1480,19 @@ > return 0; > } >

Re: [ros-dev] KD trace during ROS installation

2016-09-27 Thread Thomas Faber
You should be able to simply add an Options=... line to the [Setup] section in boot/bootdata/bootcd.ini to modify the setup's freeldr options. That file becomes freeldr.ini in the root dir of the BootCD. On 2016-09-27 12:21, Love Nystrom wrote: > Good afternoon gentlemen.. > > Can anyone tell

Re: [ros-dev] [ros-diffs] [cwittich] 72792: [CRYPTNET] disable broken code

2016-09-25 Thread Thomas Faber
orrect LastError when >> you pass an invalid path like "C:C:\Windows" >> Our CreateFile returns ERROR_INVALID_NAME, wines PATH_NOT_FOUND or >> FILE_NOT_FOUND** >> >> Guess we need a test for CreateFile... >> >> Am 24.09.2016 um 17:10 schrieb Thoma

Re: [ros-dev] [ros-diffs] [mjansen] 73180: [SHELL32_APITEST] Add some tests for ShellExecuteEx showing extension completion with the App Paths registry key. Patch by Yaroslav Veremenko. CORE-12049

2016-11-09 Thread Thomas Faber
APITests should be named after a function. And in particular, they can't be named the same as a Wine test for the same module. This is currently causing result submission on Testbot to fail, so please rename this test. On 2016-11-09 23:13, mjan...@svn.reactos.org wrote: Author: mjansen Date:

Re: [ros-dev] [ros-diffs] [hbelusca] 72992: [CONSRV]: Code style changes only.

2016-10-19 Thread Thomas Faber
On 2016-10-19 01:45, hbelu...@svn.reactos.org wrote: > --- trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c > [iso-8859-1] (original) > +++ trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c > [iso-8859-1] Tue Oct 18 23:45:19 2016 > @@ -137,7 +137,7 @@ >

Re: [ros-dev] [ros-diffs] [janderwald] 73016: [USBAUDIO] - implement retrieving string descriptor of product and store it in registry.

2016-10-21 Thread Thomas Faber
On 2016-10-21 23:15, janderw...@svn.reactos.org wrote: > NTSTATUS > +NTAPI > +USBAudioGetDescriptor( > +IN PDEVICE_OBJECT DeviceObject, > +IN UCHAR DescriptorType, > +IN ULONG DescriptorLength, > +IN UCHAR DescriptorIndex, > +IN LANGID LanguageId, > +OUT PVOID

Re: [ros-dev] [ros-diffs] [hbelusca] 73233: [LSASRV] - No need to hardcode the name of the dll in the GetModuleHandleW call; - Use ARRAYSIZE instead of hardcoding string buffer sizes; - When initializ

2016-11-14 Thread Thomas Faber
On 2016-11-14 17:19, hbelu...@svn.reactos.org wrote: -hInstance = GetModuleHandleW(L"lsasrv.dll"); +hInstance = GetModuleHandleW(NULL); Those are not equivalent at all. ___ Ros-dev mailing list Ros-dev@reactos.org

Re: [ros-dev] [ros-diffs] [phater] 73095: [TCPIP] Copy back unicast IP if broadcast is specified for listen. CORE-12152

2016-11-02 Thread Thomas Faber
On 2016-11-02 12:24, pha...@svn.reactos.org wrote: +/* Check if we had an unspecified address */ +if (Connection->AddressFile->Address.Address.IPv4Address != bindaddr.addr) +{ +/* We did, so we need to copy back the address */ +

Re: [ros-dev] [ros-diffs] [hbelusca] 73078: [BTRFS]: Fix compilation with MSVC too, as we don't have the 'FileFsSectorSizeInformation' FS information class in our headers (this is some Win8+ stuff). C

2016-10-30 Thread Thomas Faber
And what's wrong with just adding it to our headers? On 2016-10-30 15:14, hbelu...@svn.reactos.org wrote: Author: hbelusca Date: Sun Oct 30 14:14:27 2016 New Revision: 73078 URL: http://svn.reactos.org/svn/reactos?rev=73078=rev Log: [BTRFS]: Fix compilation with MSVC too, as we don't have the

Re: [ros-dev] [ros-diffs] [hbelusca] 73046: Fix a comment.

2016-10-26 Thread Thomas Faber
On 2016-10-27 00:06, hbelu...@svn.reactos.org wrote: -/* Sundry checkboxes */ +/* Other checkboxes */ Not sure how this "fixes" anything? Those are synonyms? ___ Ros-dev mailing list Ros-dev@reactos.org

Re: [ros-dev] [ros-diffs] [phater] 72948: [MSAFD] Fix some return codes and better parameter checks based on wine tests CORE-12104

2016-10-10 Thread Thomas Faber
Hurray! Congrats on your first commit! On 2016-10-10 08:38, pha...@svn.reactos.org wrote: > Author: phater > Date: Mon Oct 10 06:38:52 2016 > New Revision: 72948 > > URL: http://svn.reactos.org/svn/reactos?rev=72948=rev > Log: > [MSAFD] Fix some return codes and better parameter checks based on

Re: [ros-dev] [ros-diffs] [gadamopoulos] 73436: [SHELL32] - Initialize the shell icon cache only when needed or when FileIconInit is called (and not in the DllMain of shell32)

2016-12-07 Thread Thomas Faber
On 2016-12-07 01:10, gadamopou...@svn.reactos.org wrote: [SHELL32] - Initialize the shell icon cache only when needed or when FileIconInit is called (and not in the DllMain of shell32) --- trunk/reactos/dll/win32/shell32/iconcache.cpp [iso-8859-1] (original) +++

Re: [ros-dev] [ros-diffs] [jimtabor] 73532: [NtUser] - Fix menu surfing while using MS Office 2003. See CORE-12085 and CORE-12071.

2017-01-13 Thread Thomas Faber
On 2017-01-13 05:06, jimta...@svn.reactos.org wrote: VOID FASTCALL IntSendChildNCPaint(PWND pWnd) { + PWND Child; + HWND *List, *phWnd; + + List = IntWinListChildren(UserGetDesktopWindow()); + if ( List ) + { + for (phWnd = List; *phWnd; ++phWnd) + { + Child =

Re: [ros-dev] [ros-diffs] [jimtabor] 73475: [Win32SS|RTL] - Fix clipping for Draw Text. Inspired by Katayama Hirofumi MZ patch and ComCtl32/RichEd20/UxThmems. See CORE-2201.

2016-12-25 Thread Thomas Faber
On 2016-12-22 11:39, jimta...@svn.reactos.org wrote: +#ifndef _WIN32K_ / Fix CORE-2201. +if (!(flags & DT_NOCLIP) ) +{ + int hasClip; + hrgn = CreateRectRgn(0,0,0,0); + if (hrgn) + { + hasClip = GetClipRgn(hdc, hrgn); + // If the region to be

Re: [ros-dev] [ros-diffs] [gadamopoulos] 74151: [BROWSEUI] -CExplorerBand: Stub QueryService method and set the site of the context menu so as to let the context menu find the SID_IShellBrowser when t

2017-03-23 Thread Thomas Faber
On 2017-03-12 10:48, gadamopou...@svn.reactos.org wrote: // *** IServiceProvider methods *** HRESULT STDMETHODCALLTYPE CExplorerBand::QueryService(REFGUID guidService, REFIID riid, void **ppvObject) { -UNIMPLEMENTED; -return E_NOTIMPL; +/* FIXME: we probably want to handle more

Re: [ros-dev] New ideas added to GSoC Ideas list

2017-03-16 Thread Thomas Faber
I can tell you some possible next steps: - x64: implement PAE support in the 32 bit kernel - SMP: Implement resource translators and arbiters (I have some initial work for this somewhere) - Also SMP: build a CONFIG_SMP kernel (with some hack to use the regular HAL) and debug any issues coming

Re: [ros-dev] GSoC Mentor

2017-04-01 Thread Thomas Faber
Hey, from your list I'd be the likely mentor for at least the KMTest project. Other projects might be supported by Pierre, Giannis or others. To help pick your project I'd suggest you let us know more about your interests and skills, as these are probably the most important factor. A real-time

Re: [ros-dev] GSOC, mentor status for USB xHCI,

2017-04-01 Thread Thomas Faber
Hello, I've seen some of your contributions and am happy to hear you're considering applying. I'd be the most likely mentor candidate for a USB-related project, so feel free to direct any technical questions toward me or show me proposal drafts. The code you'd be working on will be structurally

Re: [ros-dev] GSoC Terminal Services mentor status

2017-04-01 Thread Thomas Faber
Hi, Terminal Services is a relatively generic project that we might assign almost any mentor to. Feel free to post any technical questions you might have here or on #reactos-dev. If you'd like to talk to someone privately, you may pick any of the devs that you see active on the mailing list or

Re: [ros-dev] [ros-diffs] [ekohl] 74054: [NTOS:OB] Create a custom security descriptor for the global DosDevices directory.

2017-03-04 Thread Thomas Faber
On 2017-03-04 17:02, ek...@svn.reactos.org wrote: > +Dacl = ExAllocatePool(PagedPool, AclLength); Would you mind using ExAllocatePoolWithTag for new code please, with no exceptions? (I want to #define ExAllocatePool do_not_use_this_function at some point) Thanks! -Thomas

Re: [ros-dev] [ros-diffs] [hbelusca] 74068: [WS2_32] - Fix pointers verification in WSALookupServiceNextW and WSALookupServiceNextA; - In WSALookupServiceNextA: Perform extra checks to see whether we

2017-03-05 Thread Thomas Faber
On 2017-03-05 01:40, hbelu...@svn.reactos.org wrote: + +/* + * Check whether we actually just retrieved the needed buffer size + * because our previous local allocation did fail. If so, allocate + * a new buffer and retry again. + */ +if ( (!UnicodeQuerySet) &&

Re: [ros-dev] [ros-diffs] [tfaber] 74305: [NTOS:KE] - Gracefully handle page faults during V86 code execution. This is a bit of a hack because with our limited use of V86 code it is unclear how a page

2017-04-14 Thread Thomas Faber
I said it's unclear how, not that it doesn't happen ;) This change fixes boot on the machine mentioned in https://jira.reactos.org/browse/CORE-12993 What happens is there's a bug in the BIOS that causes a ret to an broken address, then we execute garbage and fault on a stack address. The stack

Re: [ros-dev] "Note: LibreOffice 5.4 will be the last codeline to support Windows XP or Vista"

2017-06-29 Thread Thomas Faber
There's an easy benefit for them: it reduces their test matrix. That's why you generally only support platforms that have value, rather than supporting everything unless and until you have a concrete reason to drop it. On 2017-06-29 16:08, Hermès BÉLUSCA-MAÏTO wrote: I’m wondering for which

Re: [ros-dev] [ros-diffs] [ion] 74546: BL Library now works 100% in paging, protected mode. A picture is worth a thousand commits: http://i.imgur.com/Zx2nQ6x.jpg [BOOTLIB]: Add support for protocol op

2017-05-15 Thread Thomas Faber
We have a bin2c tool that would make including the boot logo much nicer. You'll want to use something like the attached patch, and add the bmp file as app/rosload/logo.bmp. Then just include "logo.h" instead of the g_Logo array in rosload.c. On 2017-05-15 03:38, i...@svn.reactos.org wrote:

Re: [ros-dev] [ros-diffs] [hbelusca] 69160: [EFISYS]: Add 'bcd_hive' as a dependency. [FATTEN]: Fix help message. Functions with no parameters are void. Remove an hardcoded array size.

2017-05-13 Thread Thomas Faber
Hey Hermès, I'm fixing how the BCD hive is generated and this just showed up in an svn blame for me. Can you explain why this bcd_hive dependency is needed? I don't see the command depending on the hive file. Thanks, Thomas On 2015-09-09 21:48, hbelu...@svn.reactos.org wrote: > Author: hbelusca

Re: [ros-dev] [ros-diffs] [hbelusca] 74549: [USETUP]: Add & modify some file utility functions that are going to be used in the next commit. - ConcatPaths that concatenates paths (or a path and a file

2017-05-16 Thread Thomas Faber
Basic source control rule: please don't change things and move them around at the same time. Unless your goal is to make sure noone reviews your changes, of course. Thanks. -Thomas On 2017-05-15 03:52, hbelu...@svn.reactos.org wrote: Author: hbelusca Date: Mon May 15 01:52:34 2017 New

Re: [ros-dev] [ros-diffs] [hbelusca] 74550: [USETUP]: Continue implementing the NT OS installation detector. What remains to be done here, besides cleaning up the code from temporary comments and DPRI

2017-05-16 Thread Thomas Faber
On 2017-05-15 03:59, hbelu...@svn.reactos.org wrote: Author: hbelusca Date: Mon May 15 01:59:28 2017 New Revision: 74550 URL: http://svn.reactos.org/svn/reactos?rev=74550=rev Log: [USETUP]: Continue implementing the NT OS installation detector. What remains to be done here, besides cleaning up

Re: [ros-dev] [ros-diffs] [hbelusca] 74550: [USETUP]: Continue implementing the NT OS installation detector. What remains to be done here, besides cleaning up the code from temporary comments and DPRI

2017-05-16 Thread Thomas Faber
Hi again, some comments inline. On 2017-05-15 03:59, hbelu...@svn.reactos.org wrote: --- branches/setup_improvements/base/setup/usetup/osdetect.c[iso-8859-1] (original) +++ branches/setup_improvements/base/setup/usetup/osdetect.c[iso-8859-1] Mon May 15 01:59:28 2017 @@ -19,6 +19,9

Re: [ros-dev] [ros-diffs] [gadamopoulos] 74552: [UXTHEME] -ThemeDrawCaptionText: Try to avoid a heap allocation when getting the window caption.

2017-05-16 Thread Thomas Faber
Hi, comments inline. On 2017-05-15 18:05, gadamopou...@svn.reactos.org wrote: --- trunk/reactos/dll/win32/uxtheme/nonclient.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/uxtheme/nonclient.c [iso-8859-1] Mon May 15 16:05:14 2017 @@ -100,16 +100,7 @@ return hIcon; } -WCHAR

Re: [ros-dev] [ros-diffs] [phater] 74750: [MSWSOCK] Call explicitly DnsQuery_W. Copy host aliases if available as answer from the query

2017-06-09 Thread Thomas Faber
On 2017-06-02 19:52, pha...@svn.reactos.org wrote: +aDstNextStr = (char*)((DWORD)aDstNextStr + (DWORD)bItmLen); DWORD cannot always fit a pointer. You want DWORD_PTR for this kind of math (or simply use char *). ___ Ros-dev mailing list

Re: [ros-dev] [ros-diffs] [tthompson] 74970: [NTFS] - Add the most basic support for file creation. Expand diagnostic output, especially in NtfsDumpIndexRootAttribute(). Replace an ExFreePool() with E

2017-06-12 Thread Thomas Faber
On 2017-06-09 05:14, tthomp...@svn.reactos.org wrote: > +RtlZeroMemory(, sizeof(UNICODE_STRING)); > +FilenameNoPath.Buffer = Buffer; > +FilenameNoPath.MaximumLength = MAX_PATH; > + RtlInitEmptyUnicodeString does this for you On 2017-06-09 05:14, tthomp...@svn.reactos.org wrote: > +

Re: [ros-dev] [ros-diffs] [hbelusca] 75008: [USETUP]: Introduce SetupDeleteFile() and SetupMoveFile() (in addition to the already-existing SetupCopyFile()) in order to implement moving / renaming exis

2017-06-12 Thread Thomas Faber
On 2017-06-12 01:58, hbelu...@svn.reactos.org wrote: +NTSTATUS +SetupMoveFile( +IN PCWSTR ExistingFileName, +IN PCWSTR NewFileName, +IN ULONG Flags) +{ +NTSTATUS Status; +IO_STATUS_BLOCK IoStatusBlock; +OBJECT_ATTRIBUTES ObjectAttributes; +PFILE_RENAME_INFORMATION

Re: [ros-dev] [ros-diffs] [hbelusca] 75133: [NTOS]: Revert the pool tag change from r75128, and explain in comment why we cannot actually use it.

2017-06-19 Thread Thomas Faber
On 2017-06-19 18:29, hbelu...@svn.reactos.org wrote: +/* + * Free it from the pool. + * + * We cannot use here ExFreePoolWithTag(..., OB_NAME_TAG); , because + * the object name may have been massaged during operation by different + * object parse

Re: [ros-dev] [ros-diffs] [hbelusca] 74621: [USETUP]: SetupLib: Add an ARC path to (and from) NT path resolver. It allows mapping between an ARC path as specified in freeldr.ini / boot.ini , to its co

2017-05-22 Thread Thomas Faber
On 2017-05-22 03:09, hbelu...@svn.reactos.org wrote: --- branches/setup_improvements/base/setup/lib/arcname.c(added) +++ branches/setup_improvements/base/setup/lib/arcname.c[iso-8859-1] Mon May 22 01:09:35 2017 +PCSTR +ArcGetNextTokenA( +IN PCSTR ArcPath, +OUT

Re: [ros-dev] [ros-diffs] [hbelusca] 74618: [USETUP]: Move all the code that retrieves the version resources from PE executable, out of osdetect.c, and place it in its own module inside the setuplib.

2017-05-22 Thread Thomas Faber
On 2017-05-22 01:41, hbelu...@svn.reactos.org wrote: +static PCVS_VERSION_INFO_STRUCT32 +VersionInfo32_FindChild( +IN PCVS_VERSION_INFO_STRUCT32 info, +IN PCWSTR szKey, +IN UINT cbKey) +{ +PCVS_VERSION_INFO_STRUCT32 child = VersionInfo32_Children(info); + +while

Re: [ros-dev] [ros-diffs] [hbelusca] 74619: [USETUP]: filesup module: - Add a NtPathToDiskPartComponents helper, that takes in input a fully qualified NT path to a file on hard disk, e.g.: \Device\Har

2017-05-22 Thread Thomas Faber
On 2017-05-22 01:45, hbelu...@svn.reactos.org wrote: > +BOOLEAN > +NtPathToDiskPartComponents( > +IN PCWSTR NtPath, > +OUT PULONG pDiskNumber, > +OUT PULONG pPartNumber, > +OUT PCWSTR* PathComponent OPTIONAL) > +{ > +ULONG DiskNumber, PartNumber; > +PCWSTR Path; > + > +

Re: [ros-dev] [ros-diffs] [hbelusca] 74617: [USETUP]: PartList module: Add a couple of disk/partition getters: GetDiskByBiosNumber, GetDiskByNumber, GetDiskBySCSI, GetDiskBySignature, GetPartition, Ge

2017-05-22 Thread Thomas Faber
On 2017-05-22 01:36, hbelu...@svn.reactos.org wrote: --- branches/setup_improvements/base/setup/lib/partlist.c [iso-8859-1] (original) +++ branches/setup_improvements/base/setup/lib/partlist.c [iso-8859-1] Sun May 21 23:36:13 2017 @@ -1333,8 +1348,204 @@

Re: [ros-dev] [ros-diffs] [mjansen] 74693: [KERNEL32] Initial implementation for BaseCheckRunApp, calling into apphelp to check for compatibility fixes CORE-10368

2017-05-29 Thread Thomas Faber
Testbots seem to dislike this commit, looks like 3rd stage boot is broken in some way. :( On 2017-05-28 21:27, mjan...@svn.reactos.org wrote: Author: mjansen Date: Sun May 28 19:27:51 2017 New Revision: 74693 URL: http://svn.reactos.org/svn/reactos?rev=74693=rev Log: [KERNEL32] Initial

Re: [ros-dev] [ros-diffs] [hbelusca] 74735: [NTOS]: Better clean up behind ourselves on failure paths (aka. closing handles). These functions are clearly not written with correct cleanup-on-failure co

2017-06-02 Thread Thomas Faber
On 2017-06-01 20:37, hbelu...@svn.reactos.org wrote: +if (!NT_SUCCESS(Status)) +{ +/* We failed, close all the opened handles and return */ +// NtClose(KeyHandle); Please don't add commented-out code. What is that supposed to even mean? "I was too lazy to test this"?

Re: [ros-dev] [ros-diffs] [hbelusca] 74739: [MKHIVE]: Formatting changes only + sync back the names of the reg-inf functions with the ones where they are coming from (aka. Wine's setupapi/install.c).

2017-06-02 Thread Thomas Faber
On 2017-06-02 02:00, hbelu...@svn.reactos.org wrote: [MKHIVE]: Formatting changes only + sync back the names of the reg-inf functions with the ones where they are coming from (aka. Wine's setupapi/install.c). Those two goals clearly conflict with either other. Either keep Wine's function

Re: [ros-dev] [ros-diffs] [hbelusca] 74742: [USETUP]: Creating a registry key with zero access is just plainly invalid. Fix it. It was not caught before because, we never ever booted a 1st-stage setup

2017-06-02 Thread Thomas Faber
On 2017-06-02 02:44, hbelu...@svn.reactos.org wrote: @@ -341,7 +341,7 @@ } InitializeObjectAttributes(, , OBJ_CASE_INSENSITIVE, NULL, NULL); -Status = NtCreateKey(, 0, , 0, NULL, 0, NULL); +Status = NtCreateKey(, KEY_ALL_ACCESS, , 0, NULL, 0, NULL); if

Re: [ros-dev] [ros-diffs] [hbelusca] 74741: [MKHIVE][CMAKE]: Make mkhive a bit more flexible, so that it can generate only specific hives on-demand (and not all of them always at once). I need this fo

2017-06-02 Thread Thomas Faber
I understand not making the change to how 1st stage deals with the registry in trunk. Why not the tool change though? Can't you have the new mkhive do the exact same thing it does now, and do it in trunk? The smaller your branch merge commit the easier it will be to avoid/pinpoint/fix

Re: [ros-dev] [ros-diffs] [hbelusca] 74733: [NTOS]: Minor code formatting + don't leak a handle in case of failure, in CmpInitializeHardwareConfiguration().

2017-06-02 Thread Thomas Faber
On 2017-06-01 20:27, hbelu...@svn.reactos.org wrote: /* EISA */ case EisaAdapter: - +{ /* Fixup information */ Interface = Eisa; Bus = CmpTypeCount[EisaAdapter]++;

Re: [ros-dev] [ros-diffs] [hbelusca] 74493: [NTOS]: Capture the counted BaseDllName unicode string into a local NULL-terminated buffer before calling wcsrchr on it (actually I think it would be better

2017-05-08 Thread Thomas Faber
years old). On 2017-05-08 04:11, Hermès BÉLUSCA-MAÏTO wrote: Hi! The assert is fixed (r74495). For ExAllocatePool, it would be better to change them all at once in this file. Hermès -Message d'origine- De : Ros-dev [mailto:ros-dev-boun...@reactos.org] De la part de Thomas Faber Envoyé

Re: [ros-dev] [ros-diffs] [hbelusca] 74493: [NTOS]: Capture the counted BaseDllName unicode string into a local NULL-terminated buffer before calling wcsrchr on it (actually I think it would be better

2017-05-07 Thread Thomas Faber
On 2017-05-07 20:15, hbelu...@svn.reactos.org wrote: --- trunk/reactos/ntoskrnl/io/iomgr/driver.c[iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/iomgr/driver.c[iso-8859-1] Sun May 7 18:15:12 2017 @@ -884,7 +884,7 @@ PDEVICE_NODE DeviceNode; PDRIVER_OBJECT DriverObject;

Re: [ros-dev] Rethinking our Git merge workflow

2017-09-14 Thread Thomas Faber
I'm wary of opening up pushing to master. If we really want a linear history, it should be enforced. Accidents with version control happen all the time (when was the last time the SVN pre-commit hook stopped you from committing because you forgot to set eol-style?). I wouldn't mind forcing the

<    1   2   3   >