# HG changeset patch # User glx # Date 2009-01-01 18:18:17 # Node ID e4a70c2e7a41cc2940ed810b815b52ae301e6577 # Parent 6537bd2d93640d2eeff2903480a6cdd1eb758016 (svn r14780) -Fix (r14777): of course VBS evaluates all parts of a boolean expression diff --git a/projects/determineversion.vbs b/projects/determineversion.vbs --- a/projects/determineversion.vbs +++ b/projects/determineversion.vbs @@ -273,12 +273,12 @@ Function IsCachedVersion(ByVal version) End Function Function CheckFile(filename) - CheckFile = FSO.FileExists(filename) And (FSO.GetFile(filename).DateLastModified >= FSO.GetFile(filename & ".in").DateLastModified) + CheckFile = FSO.FileExists(filename) + If CheckFile Then CheckFile = (FSO.GetFile(filename).DateLastModified >= FSO.GetFile(filename & ".in").DateLastModified) End Function Dim version version = DetermineSVNVersion If Not (IsCachedVersion(version) And CheckFile("../src/rev.cpp") And CheckFile("../src/ottdres.rc")) Then - wscript.echo "update" UpdateFiles version End If