Changeset 1271 for trunk/src/win32k/misc/vsprintf.c
- Timestamp:
- Oct 14, 1999, 3:19:22 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/misc/vsprintf.c
r847 r1271 1 /* $Id: vsprintf.c,v 1. 1 1999-09-06 02:20:02 bird Exp $1 /* $Id: vsprintf.c,v 1.2 1999-10-14 01:19:22 bird Exp $ 2 2 * 3 3 * vsprintf and sprintf … … 31 31 #include <stdarg.h> 32 32 33 #include "dev32.h" 33 #ifdef RING0 34 #include "dev32.h" 35 #else 36 #define SSToDS(a) (a) 37 #endif 34 38 #include "sprintf.h" 35 39 … … 128 132 } 129 133 else if (fFlags & (NTSF_PLUS | NTSF_BLANK)) 130 psz[i++] = fFlags & NTSF_PLUS ? '+' : ' ';134 psz[i++] = (char)(fFlags & NTSF_PLUS ? '+' : ' '); 131 135 } 132 136 … … 135 139 psz[i++] = '0'; 136 140 if (uiBase == 16) 137 psz[i++] = fFlags & NTSF_CAPITAL ? 'X' : 'x';141 psz[i++] = (char)(fFlags & NTSF_CAPITAL ? 'X' : 'x'); 138 142 } 139 143 … … 181 185 182 186 187 #pragma info(notrd) 183 188 /** 184 189 * Partial vsprintf implementation. … … 295 300 char *pszStr = va_arg(args, char*); 296 301 297 if (pszStr >(char*)0x10000)302 if (pszStr < (char*)0x10000) 298 303 pszStr = "<NULL>"; 299 304 cchStr = _strnlen(pszStr, (unsigned)cchPrecision);
Note:
See TracChangeset
for help on using the changeset viewer.