Bug 507506: ntmisc.c _MD_WindowsGetSysInfo needs to handle Windows CE NSPR_HEAD_20090801
authornelson%bolyard.com
Sat, 01 Aug 2009 02:43:22 +0000
changeset 4139 3e07ee6b5f9816ba817b99c879233cf19d71b826
parent 4138 496999d0dc6818cd764986faf6bd948a4f27c99a
child 4140 1e2b1c27388a9cdc2d922854a5d72c47d853994b
push idunknown
push userunknown
push dateunknown
bugs507506
Bug 507506: ntmisc.c _MD_WindowsGetSysInfo needs to handle Windows CE Incorporate Wan-Teh's suggestion for an ifdef. Patch by Robert Strong. r=nelson
pr/src/md/windows/ntmisc.c
--- a/pr/src/md/windows/ntmisc.c
+++ b/pr/src/md/windows/ntmisc.c
@@ -835,23 +835,25 @@ PRStatus _MD_WindowsGetSysInfo(PRSysInfo
 					(void)PR_snprintf(name, namelen, "Windows_98");
 				else
 					(void)PR_snprintf(name, namelen, "Windows_95");
 			} else if (PR_SI_RELEASE == cmd) {
 				(void)PR_snprintf(name, namelen, "%d.%d",osvi.dwMajorVersion, 
             							osvi.dwMinorVersion);
 			}
 			break;
+#ifdef VER_PLATFORM_WIN32_CE
     case VER_PLATFORM_WIN32_CE:
 			if (PR_SI_SYSNAME == cmd)
 				(void)PR_snprintf(name, namelen, "Windows_CE");
 			else if (PR_SI_RELEASE == cmd)
 				(void)PR_snprintf(name, namelen, "%d.%d",osvi.dwMajorVersion, 
             							osvi.dwMinorVersion);
 			break;
+#endif
    		default:
 			if (PR_SI_SYSNAME == cmd)
 				(void)PR_snprintf(name, namelen, "Windows_Unknown");
 			else if (PR_SI_RELEASE == cmd)
 				(void)PR_snprintf(name, namelen, "%d.%d",0,0);
 			break;
 	}
 	return PR_SUCCESS;