Hi,

With this patch, it makes debugging in acm
stuff a bit easier.  It silences an exception in
acmMetrics.

Basically what is happening is that acmMetrics
calls MSACM_GetObject on the incoming hao
parameter.  Inside MSACM_GetObject, it calls
IsBadReadPtr, if that fails it returns NULL.
However, it is possible for the incoming 
hao parameter to be NULL, so this IsBadReadPtr
causes an exception (and breaks in the debugger).
Of course, you can pass this exception and everything
works fine, but it makes things confusing when 
mixed in with REAL exceptions....

So I basically check for NULL, and if it is NULL
I don't call MSACM_GetObject.  Nothing is really
changed, just less times I have to type "pass."
while debugging some ACM stuff.


Changelog:
  James Hatheway - [EMAIL PROTECTED]
  Silence unneeded exception to allow easier ACM
  debugging

Modified:
  dlls/msacm/msacm32_main.c

-- 
James Hatheway
Software Designer - Macadamian Technologies, Inc.
[EMAIL PROTECTED] ~ http://www.macadamian.com

   "Nothing is a problem once you debug the code."

noexcep_acmMetrics.diff

Reply via email to