Skip to content

Commit

Permalink
Merging r375 from trunk.
Browse files Browse the repository at this point in the history
  • Loading branch information
derceg committed Aug 19, 2011
1 parent ec82c33 commit 2b57891
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions Explorer++/Explorer++/Misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1853,10 +1853,6 @@ BOOL Explorerplusplus::CheckItemSelection(void)
return FALSE;
}

/* Checks the version of the specified
language DLL against the version of the
main executable and returns TRUE if they
match. */
BOOL Explorerplusplus::VerifyLanguageVersion(TCHAR *szLanguageModule)
{
TCHAR szImageName[MAX_PATH];
Expand All @@ -1877,9 +1873,16 @@ BOOL Explorerplusplus::VerifyLanguageVersion(TCHAR *szLanguageModule)

if(bSuccess1 && bSuccess2)
{
if((dwpvProcessLS == dwpvLanguageLS) &&
(dwpvProcessMS == dwpvLanguageMS))
/* For the version of the language DLL to match
the version of the executable, the major version,
minor version and micro version must match. The
build version is ignored. */
if(HIWORD(dwpvLanguageMS) == HIWORD(dwpvProcessMS) &&
LOWORD(dwpvLanguageMS) == LOWORD(dwpvProcessMS) &&
HIWORD(dwpvLanguageLS) == HIWORD(dwpvProcessLS))
{
return TRUE;
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions Explorer++/Helper/Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2581,8 +2581,8 @@ DWORD *pdwProductVersionLS,DWORD *pdwProductVersionMS)

if(uLen > 0)
{
*pdwProductVersionLS = pvsffi->dwProductVersionMS;
*pdwProductVersionMS = pvsffi->dwProductVersionLS;
*pdwProductVersionLS = pvsffi->dwProductVersionLS;
*pdwProductVersionMS = pvsffi->dwProductVersionMS;

bSuccess = TRUE;
}
Expand Down

0 comments on commit 2b57891

Please sign in to comment.