pdh: Return correct error on allocation failure.
This commit is contained in:
parent
8986cd1ed7
commit
9e39e8a7e9
|
@ -1098,6 +1098,8 @@ PDH_STATUS WINAPI PdhMakeCounterPathA( PDH_COUNTER_PATH_ELEMENTS_A *e, LPSTR buf
|
|||
}
|
||||
heap_free( bufferW );
|
||||
}
|
||||
else
|
||||
ret = PDH_MEMORY_ALLOCATION_FAILURE;
|
||||
}
|
||||
|
||||
done:
|
||||
|
|
Loading…
Reference in New Issue