pdh: Return correct error on allocation failure.

This commit is contained in:
Joris Huizer 2009-05-10 21:27:12 +02:00 committed by Alexandre Julliard
parent 8986cd1ed7
commit 9e39e8a7e9
1 changed files with 2 additions and 0 deletions

View File

@ -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: