"Martin Wilck" Martin.Wilck@Fujitsu-Siemens.com wrote:
+/******************************************************************************
- netbios_char (INTERNAL)
- */
+static WCHAR netbios_char ( WCHAR wc ) +{
- static const WCHAR special[] = {'!','@','#','$','%','^','&',''',')','(','-','_','{','}','~'};
- static const WCHAR deflt = '_';
- int i;
- if ( isalnumW ( wc ) ) return wc;
- for ( i = 0; i < sizeof (special); i++ )
if ( wc == special[i] ) return wc;
- return deflt;
+}
Shouldn't be sizeof(special) above divided by sizeof(WCHAR)?