Hi there,
I wrote here for problems, then I wrote here to say I found a BUG, then I'm
writing again to post a piece of code to correct the BUG. Now I was asking
myself, does somebody read my post or not? Well, anyway, for your information:
The OSReport was counting some "Unknown Windows" instead of WinME. The mistake
was in source file tree.c ... you should replace
-------------
if (c != NULL) { /* We did find "Windows" or "Win" */
if (*c == '9' && *(c + 1) == '5')
*name = "Windows:Windows 95";
else if (*c == '9' && *(c + 1) == '8') {
if (strstr(c, "Win 9x 4.9"))
*name = "Windows:Windows ME";
else
*name = "Windows:Windows 98";
}
else if (*c == 'N' && *(c + 1) == 'T') {
-------------
with
-------------
if (c != NULL) { /* We did find "Windows" or "Win" */
if (*c == '9' && *(c + 1) == '5')
*name = "Windows:Windows 95";
else if (strstr(c, "9x 4.9"))
*name = "Windows:Windows ME";
else if (*c == '9' && *(c + 1) == '8')
*name = "Windows:Windows 98";
else if (*c == 'N' && *(c + 1) == 'T') {
-------------
and count will be correct.
Bye
Sverx
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------