Joris Huizer : pdh: Return correct error on allocation failure.

Alexandre Julliard julliard at winehq.org
Mon May 11 09:10:46 CDT 2009


Module: wine
Branch: master
Commit: 9e39e8a7e93caddf051ab6ef655bbb7482dcb50a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9e39e8a7e93caddf051ab6ef655bbb7482dcb50a

Author: Joris Huizer <joris_huizer at yahoo.com>
Date:   Sun May 10 21:27:12 2009 +0200

pdh: Return correct error on allocation failure.

---

 dlls/pdh/pdh_main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c
index 8e91caf..9ca174b 100644
--- a/dlls/pdh/pdh_main.c
+++ b/dlls/pdh/pdh_main.c
@@ -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:




More information about the wine-cvs mailing list