advpack: Set the ldids of the install section in install_init.

oldstable
James Hawkins 2006-04-20 01:36:39 -05:00 committed by Alexandre Julliard
parent 704e70ff7c
commit aabb5d0443
3 changed files with 4 additions and 2 deletions

View File

@ -92,7 +92,7 @@ static void get_dest_dir(HINF hInf, PCWSTR pszSection, PWSTR pszBuffer, DWORD dw
}
/* loads the LDIDs specified in the install section of an INF */
static void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir)
void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir)
{
WCHAR field[MAX_FIELD_LENGTH];
WCHAR line[MAX_FIELD_LENGTH];

View File

@ -22,6 +22,7 @@
#define __ADVPACK_PRIVATE_H
LPWSTR get_parameter(LPWSTR *params, WCHAR separator);
void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir);
HRESULT launch_exe(LPCWSTR cmd, LPCWSTR dir, HANDLE *phEXE);
HRESULT do_ocx_reg(HMODULE hocx, BOOL do_reg);

View File

@ -259,7 +259,8 @@ HRESULT install_init(LPCWSTR inf_filename, LPCWSTR install_sec,
if (info->hinf == INVALID_HANDLE_VALUE)
return ADV_HRESULT(GetLastError());
/* FIXME: set the ldids of the install section */
set_ldids(info->hinf, info->install_sec, info->working_dir);
/* FIXME: check that the INF is advanced */
info->flags = flags;