Module: wine Branch: master Commit: 22aed3267b27667e87dc7654f838621abc0337ad URL: http://source.winehq.org/git/wine.git/?a=commit;h=22aed3267b27667e87dc7654f8... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sat Jan 26 09:43:10 2008 +0100 pdh: Fixed wrong condition. --- dlls/pdh/pdh_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c index a7aa21b..d78af4a 100644 --- a/dlls/pdh/pdh_main.c +++ b/dlls/pdh/pdh_main.c @@ -873,7 +873,7 @@ PDH_STATUS WINAPI PdhLookupPerfNameByIndexW( LPCWSTR machine, DWORD index, LPWST return PDH_CSTATUS_NO_MACHINE; } - if (!buffer && !size) return PDH_INVALID_ARGUMENT; + if (!buffer || !size) return PDH_INVALID_ARGUMENT; if (!index) return ERROR_SUCCESS; for (i = 0; i < sizeof(counter_sources) / sizeof(counter_sources[0]); i++)