stefan__100__(a)hotmail.com wrote:
>> And the reason you couldn't pass Parameters?
> Because KeBugCheck expects the array to contain 4 entries, and Parameters isn't guranteed to be that big.
> What do you think of the following?
>
> NTSTATUS NTAPI ExpSystemErrorHandler (
> // ... abbreviated ...
> {
> ULONG_PTR BugCheckParameters[MAXIMUM_HARDERROR_PARAMETERS] = {0, 0, 0, 0};
> // ... abbreviated ...
> for (i = 0; i < NumberOfParameters; i++)
> {
> /* Copy them over */
> BugCheckParameters[i] = Parameters[i];
> }
If you are going to use that, you'd better include something like this first:
if (NumberOfParameters > MAXIMUM_HARDERROR_PARAMETERS)
NumberOfParameters = MAXIMUM_HARDERROR_PARAMETERS;
or make it
for (i = 0; i < min( NumberOfParameters, MAXIMUM_HARDERROR_PARAMETERS ); i++)
or you might create more problems than you solve, unless you're 100% guarateed
you can never receive more than MAXIMUM_HARDERROR_PARAMETERS.
(This said without studying the actual problem at hand).
Best Regards // Love
_________________________________________________________________
Keep your friends updated—even when you’re not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/so…
AND THE CROWD GOES WILD!
On Oct 1, 2009 9:56 AM, "Steven Edwards" <winehacker(a)gmail.com> wrote:
On Wed, Sep 30, 2009 at 9:32 AM, <sginsberg(a)svn.reactos.org> wrote:
> URL: http://svn.reactos.org/svn/reactos?rev=43236&view=rev
> Log:
> - Goodbye __USE_W32API
This is a historic day in ReactOS that unfortunately no one will
really remember. Let us celebrate while we can and have much
rejoicing!
Thanks
--
Steven Edwards
"There is one thing stronger than all the armies in the world, and
that is an idea whose time has come." - Victor Hugo
_______________________________________________
Ros-dev mailing list
Ros-dev(a)reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev
On Wed, Sep 30, 2009 at 9:32 AM, <sginsberg(a)svn.reactos.org> wrote:
> URL: http://svn.reactos.org/svn/reactos?rev=43236&view=rev
> Log:
> - Goodbye __USE_W32API
This is a historic day in ReactOS that unfortunately no one will
really remember. Let us celebrate while we can and have much
rejoicing!
Thanks
--
Steven Edwards
"There is one thing stronger than all the armies in the world, and
that is an idea whose time has come." - Victor Hugo
And now you have added zero to this discussion. Just because Alex questions
someone's basic skills doesn't mean that noobs are working on critical
components. For some, this is an entirely academic endeavor, and Alex's
feedback is essential criticisim.
Blah, blah, blah,
WD
(Sent from my G1)
On Sep 26, 2009 2:29 PM, <betam4x(a)gmail.com> wrote:
I'm sorry, had to reply to this one. I may be way off base here since the
contents of this email are based solely upon alex's reply.
People that don't understand the basics of programming are working on system
components? I understand that people want to help, but allowing this does
more harm than good. What happened to all of the talent anyway?
In my opinion, someone that does nor understand C should not be tasked with
working on the hardware abstraction layer.
This was not meant to be an insult or attack in any way, shape, or form to
anyone involved with this thread.
Posted from my crackberry.
Regards,
Richard Campbell
Sent from my Verizon Wireless BlackBerry
-----Original Message----- From: Alex Ionescu <ionucu(a)videotron.ca> Date:
Sat, 26 Sep 2009 14:06:4...