Resend pdh[3:3]: remove unnecessary test done in PdhLookupPerfNameByIndexW

Hans Leidekker hans at
Thu Feb 14 03:51:17 CST 2008

On Thursday 14 February 2008 09:57:32 am Jeff Latimer wrote:

> +    machineW = pdh_strdup_aw( machine );
> +
> +    if (!(ret = PdhLookupPerfNameByIndexW( machineW, index, bufferW, &sizeW )))

In the unlikely event that pdh_strdup_aw fails the query will be run on
the local machine instead of the remote machine. Please check for allocation
failures like most other functions in there do.


More information about the wine-devel mailing list