Closed Bug 290916 Opened 20 years ago Closed 20 years ago

TranslateVersionStr doesn't handle missing build ID

Categories

(SeaMonkey :: Installer, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: csthomas, Unassigned)

References

()

Details

(Whiteboard: WONTFIX?)

My installer (suite) crashes.

My szVersion is "1.8.0." - I guess my build didn't produce a build ID (given the
zeros in the window title, that seems likely).  

  szNum1 = strtok(szVersion, ".");
  szNum2 = strtok(NULL,      ".");
  szNum3 = strtok(NULL,      ".");
  szNum4 = strtok(NULL,      ".");

  vbVersion->ullMajor   = _atoi64(szNum1);
  vbVersion->ullMinor   = _atoi64(szNum2);
  vbVersion->ullRelease = _atoi64(szNum3);
  vbVersion->ullBuild   = _atoi64(szNum4);

Would simply checking for null on szNum4 and setting vbVersion->ullBuild to 0 if
it's null be a valid fix?  Alternately, should the build ID still be specified as 0?
Where's this string being retrieved from?
This may be invalid / wontfix due to bug 291014.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
Whiteboard: WONTFIX?
You need to log in before you can comment on or make changes to this bug.