missing a Title or Version record.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10242
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Oct 21 23:29:18 1997 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * win_glue.c: Add checks so that code doesn't bomb out if the
+ version resource is missing a Title or Version record.
+
Fri Aug 1 22:03:24 1997 Theodore Y. Ts'o <tytso@mit.edu>
* Makefile.in, krb5.rc, version.rc: Add support for adding a
/* try a localAppTitle and then a strcpy 4/2/97 */
+ locAppTitle = 0;
+ locAppVer = 0;
+
retval = VerQueryValue(lpVersionInfo, szVerQ, &locAppTitle,
&dumint);
retval = VerQueryValue(lpVersionInfo, szVerQ, &locAppVer,
&dumint);
+ if (!locAppTitle || !locAppVer) {
+ /* Punt, we don't have the right version resource records */
+ *VSflag = FALSE;
+ return;
+ }
+
/*
* We don't have a way to determine that INI file of the
* application at the moment so let's just use krb5.ini