Rico Schüller : setupapi: Fix if condition in SetupEnumInfSectionsA/W.
Alexandre Julliard
julliard at winehq.org
Mon Jan 12 10:40:45 CST 2009
Module: wine
Branch: master
Commit: 619a74ec5f540e0be9eca487b91e8e95cb65097f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=619a74ec5f540e0be9eca487b91e8e95cb65097f
Author: Rico Schüller <kgbricola at web.de>
Date: Sun Jan 11 16:06:02 2009 +0100
setupapi: Fix if condition in SetupEnumInfSectionsA/W.
---
dlls/setupapi/parser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/setupapi/parser.c b/dlls/setupapi/parser.c
index 00d3373..c94e513 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;
More information about the wine-cvs
mailing list