mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
Look up the existence of a file to confirm product installation.
(Bug #166666, r=jbetak, sr=dveditz)
This commit is contained in:
parent
3253d0e781
commit
3a74eb9a02
@ -291,12 +291,10 @@ BOOL VerifyRestrictedAccess(void)
|
||||
|
||||
void SetInstallFilesVar(LPSTR szProdDir)
|
||||
{
|
||||
// MCP - Eventually we should make this check for a representative file
|
||||
// instead of settling for the existence of the folder. That is why
|
||||
// I left this as a function even though it is essentially a one-liner
|
||||
// at the moment.
|
||||
char szProgramPath[MAX_BUF];
|
||||
|
||||
if(FileExists(szProdDir))
|
||||
wsprintf(szProgramPath, "%s%s", szProdDir, sgProduct.szProgramName);
|
||||
if(FileExists(szProgramPath))
|
||||
sgProduct.bInstallFiles = FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user