moved "shlwapi.dll" and "SHAutoComplete" to .rdata from .data (constified them)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4258 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
c904e65ff7
commit
a882a03f74
1 changed files with 3 additions and 1 deletions
|
@ -867,7 +867,9 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
||||||
{
|
{
|
||||||
typedef HRESULT (WINAPI *SHAutoCompletePtr)(HWND, DWORD);
|
typedef HRESULT (WINAPI *SHAutoCompletePtr)(HWND, DWORD);
|
||||||
SHAutoCompletePtr fSHAutoComplete;
|
SHAutoCompletePtr fSHAutoComplete;
|
||||||
fSHAutoComplete = (SHAutoCompletePtr) myGetProcAddress("SHLWAPI.dll", "SHAutoComplete");
|
static const char shlwapi[] = "shlwapi.dll";
|
||||||
|
static const char shac[] = "SHAutoComplete";
|
||||||
|
fSHAutoComplete = (SHAutoCompletePtr) myGetProcAddress((char *) shlwapi, (char *) shac);
|
||||||
if (fSHAutoComplete)
|
if (fSHAutoComplete)
|
||||||
{
|
{
|
||||||
fSHAutoComplete(hDir, SHACF_FILESYSTEM);
|
fSHAutoComplete(hDir, SHACF_FILESYSTEM);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue