From 619a74ec5f540e0be9eca487b91e8e95cb65097f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rico=20Sch=C3=BCller?= Date: Sun, 11 Jan 2009 16:06:02 +0100 Subject: [PATCH] setupapi: Fix if condition in SetupEnumInfSectionsA/W. --- dlls/setupapi/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/setupapi/parser.c b/dlls/setupapi/parser.c index 00d3373bf87..c94e51312fe 100644 --- a/dlls/setupapi/parser.c +++ b/dlls/setupapi/parser.c @@ -1257,7 +1257,7 @@ BOOL WINAPI SetupEnumInfSectionsA( HINF hinf, UINT index, PSTR buffer, DWORD siz { DWORD len = WideCharToMultiByte( CP_ACP, 0, file->sections[index]->name, -1, NULL, 0, NULL, NULL ); - if (*need) *need = len; + if (need) *need = len; if (!buffer) { if (!size) return TRUE; @@ -1291,7 +1291,7 @@ BOOL WINAPI SetupEnumInfSectionsW( HINF hinf, UINT index, PWSTR buffer, DWORD si if (index < file->nb_sections) { DWORD len = strlenW( file->sections[index]->name ) + 1; - if (*need) *need = len; + if (need) *need = len; if (!buffer) { if (!size) return TRUE;