From 8887d74bbf559cc3ab1e4cb5796438851bfc8420 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 27 Feb 2004 06:06:38 +0000 Subject: [PATCH] SPINST_UNREGSVR must use the UnregisterDlls section, not the RegisterDlls one. --- dlls/setupapi/install.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/setupapi/install.c b/dlls/setupapi/install.c index 6322fa1678f..eeedd91d77f 100644 --- a/dlls/setupapi/install.c +++ b/dlls/setupapi/install.c @@ -73,8 +73,9 @@ static const WCHAR BitReg[] = {'B','i','t','R','e','g',0}; static const WCHAR UpdateInis[] = {'U','p','d','a','t','e','I','n','i','s',0}; static const WCHAR CopyINF[] = {'C','o','p','y','I','N','F',0}; static const WCHAR UpdateIniFields[] = {'U','p','d','a','t','e','I','n','i','F','i','e','l','d','s',0}; -static const WCHAR RegisterDlls[] = {'R','e','g','i','s','t','e','r','D','l','l','s',0}; -static const WCHAR ProfileItems[] = {'P','r','o','f','i','l','e','I','t','e','m','s',0}; +static const WCHAR RegisterDlls[] = {'R','e','g','i','s','t','e','r','D','l','l','s',0}; +static const WCHAR UnregisterDlls[] = {'U','n','r','e','g','i','s','t','e','r','D','l','l','s',0}; +static const WCHAR ProfileItems[] = {'P','r','o','f','i','l','e','I','t','e','m','s',0}; /*********************************************************************** @@ -862,7 +863,7 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section, } else info.callback = NULL; - if (!iterate_section_fields( hinf, section, RegisterDlls, register_dlls_callback, &info )) + if (!iterate_section_fields( hinf, section, UnregisterDlls, register_dlls_callback, &info )) return FALSE; } if (flags & SPINST_REGISTRY)