[regsrv32]
authorChristoph von Wittich <christoph_vw@reactos.org>
Sun, 19 Oct 2014 21:30:26 +0000 (21:30 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sun, 19 Oct 2014 21:30:26 +0000 (21:30 +0000)
don't free hDll twice

svn path=/trunk/; revision=64835

reactos/base/system/regsvr32/regsvr32.c

index 628255f..28ae13e 100644 (file)
@@ -448,7 +448,6 @@ int WINAPI _tWinMain(
                                                        nRetValue = EXITCODE_FAILURE;
                                        }
                                        else {
-                                               FreeLibrary(hDll);
                                                // DllInstall was not found, display an error message
                                                lptMsgBuffer = (LPTSTR)malloc((_tcslen(MissingEntry) - 8 + _tcslen(tszDllInstall) * 2 + _tcslen(lptDllName) * 2 + 1) * sizeof(TCHAR));
                                                _stprintf(lptMsgBuffer,MissingEntry,lptDllName,tszDllInstall,tszDllInstall,lptDllName);