Re: [ros-dev] [ros-diffs] [pschweitzer] 52065: [NTOSKRNL] - renamed Io volumes global to match Windows names (in case of debug) - renamed IopDereferenceVpb() to IopDereferenceVpbAndFree(), IopReferenc

2011-06-02 Thread Alex Ionescu
You need to cast to volatile. (Same for Increment). There's also no need to return the old value. -- Best regards, Alex Ionescu On 2011-06-02, at 1:43 PM, pschweit...@svn.reactos.org wrote: > +OldValue = (*Ulong)--; ___ Ros-dev mailing list Ros

Re: [ros-dev] [ros-diffs] [pschweitzer] 52065: [NTOSKRNL] - renamed Io volumes global to match Windows names (in case of debug) - renamed IopDereferenceVpb() to IopDereferenceVpbAndFree(), IopReferenc

2011-06-02 Thread Alex Ionescu
You misunderstand the meaning of the parameter. The last entry is the RAW file system. This parameter influences if RAWFS should be notified or not. -- Best regards, Alex Ionescu On 2011-06-02, at 1:43 PM, pschweit...@svn.reactos.org wrote: > +/* Check if we reached end and if we have t

Re: [ros-dev] [ros-diffs] [pschweitzer] 52065: [NTOSKRNL] - renamed Io volumes global to match Windows names (in case of debug) - renamed IopDereferenceVpb() to IopDereferenceVpbAndFree(), IopReferenc

2011-06-02 Thread Alex Ionescu
The notification routine can change the list, as there is no lock involved. Therefore, you should grab the next entry before notifying the driver, to maintain a consistent list state. -- Best regards, Alex Ionescu On 2011-06-02, at 1:43 PM, pschweit...@svn.reactos.org wrote: > +DriverN

Re: [ros-dev] [ros-diffs] [pschweitzer] 52065: [NTOSKRNL] - renamed Io volumes global to match Windows names (in case of debug) - renamed IopDereferenceVpb() to IopDereferenceVpbAndFree(), IopReferenc

2011-06-02 Thread Alex Ionescu
As per elementary Windows Driver Development basics, resources should ALWAYS be acquired within a critical or guarded region. -- Best regards, Alex Ionescu On 2011-06-02, at 1:43 PM, pschweit...@svn.reactos.org wrote: > +/* Acquire the FS lock */ > +ExAcquireResourceExclusiveLite(&IopDa

Re: [ros-dev] [ros-diffs] [pschweitzer] 52065: [NTOSKRNL] - renamed Io volumes global to match Windows names (in case of debug) - renamed IopDereferenceVpb() to IopDereferenceVpbAndFree(), IopReferenc

2011-06-02 Thread Alex Ionescu
You are rebrowsing the *whole* list, yet the caller gave you an argument (DriverObjectListSize) that indicated to you how large his array is. You should browse the minimum of the whole list while making sure that "Index" does not grow larger than DriverObjectListSize / sizeof(pointer). Right no

Re: [ros-dev] [ros-diffs] [pschweitzer] 52065: [NTOSKRNL] - renamed Io volumes global to match Windows names (in case of debug) - renamed IopDereferenceVpb() to IopDereferenceVpbAndFree(), IopReferenc

2011-06-02 Thread Alex Ionescu
Same comment as before, resources MUST be acquired within a critical region (as the old code did). -- Best regards, Alex Ionescu On 2011-06-02, at 1:43 PM, pschweit...@svn.reactos.org wrote: > /* Acquire the FS lock */ > -KeEnterCriticalRegion(); > -ExAcquireResourceExclusiveLite(&F

Re: [ros-dev] [ros-diffs] [pschweitzer] 52065: [NTOSKRNL] - renamed Io volumes global to match Windows names (in case of debug) - renamed IopDereferenceVpb() to IopDereferenceVpbAndFree(), IopReferenc

2011-06-02 Thread Javier Agustìn Fernàndez Arroyo
i love the way you talk with yourself :P On Thu, Jun 2, 2011 at 8:02 PM, Alex Ionescu wrote: > Same comment as before, resources MUST be acquired within a critical region > (as the old code did). > > -- > Best regards, > Alex Ionescu > > On 2011-06-02, at 1:43 PM, pschweit...@svn.reactos.org wro

Re: [ros-dev] [ros-diffs] [pschweitzer] 52065: [NTOSKRNL] - renamed Io volumes global to match Windows names (in case of debug) - renamed IopDereferenceVpb() to IopDereferenceVpbAndFree(), IopReferenc

2011-06-02 Thread Olaf Siejka
He is reviewing the bloody code, Javier. 2011/6/2 Javier Agustìn Fernàndez Arroyo > i love the way you talk with yourself :P > > > On Thu, Jun 2, 2011 at 8:02 PM, Alex Ionescu wrote: > >> Same comment as before, resources MUST be acquired within a critical >> region (as the old code did). >> >>

Re: [ros-dev] [ros-diffs] [pschweitzer] 52065: [NTOSKRNL] - renamed Io volumes global to match Windows names (in case of debug) - renamed IopDereferenceVpb() to IopDereferenceVpbAndFree(), IopReferenc

2011-06-03 Thread Ged Murphy
Do you even understand what he’s ‘talking to himself’ about? Perhaps you should refrain from commenting until you do. From: ros-dev-boun...@reactos.org [mailto:ros-dev-boun...@reactos.org] On Behalf Of Javier Agustìn Fernàndez Arroyo Sent: 02 June 2011 20:18 To: ReactOS Development List Cc: