Commit 9e39e8a7 authored by Joris Huizer's avatar Joris Huizer Committed by Alexandre Julliard

pdh: Return correct error on allocation failure.

parent 8986cd1e
...@@ -1098,6 +1098,8 @@ PDH_STATUS WINAPI PdhMakeCounterPathA( PDH_COUNTER_PATH_ELEMENTS_A *e, LPSTR buf ...@@ -1098,6 +1098,8 @@ PDH_STATUS WINAPI PdhMakeCounterPathA( PDH_COUNTER_PATH_ELEMENTS_A *e, LPSTR buf
} }
heap_free( bufferW ); heap_free( bufferW );
} }
else
ret = PDH_MEMORY_ALLOCATION_FAILURE;
} }
done: done:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment