[ofw] [Patches 6-7/26][Core] [Gutils]Adjust code to remove Prefast errors and warning

Smith, Stan stan.smith at intel.com
Wed Jun 22 10:55:11 PDT 2011


Is '#ifdef DRIVER' new?

Why not use existing complib '#ifdef CL_KERNEL'  if ' RtlStringCchCopyA()' is not available in user mode?


+#ifdef DRIVER
+	RtlStringCchCopyA(
+		(char*)reg_svc_req.svc_rec.service_name,
+		sizeof(reg_svc_req.svc_rec.service_name),
+		DM_SVC_NAME
+		);	
+#else
 		strcpy_s(
 			(char*)reg_svc_req.svc_rec.service_name,
 			sizeof(reg_svc_req.svc_rec.service_name),
 			DM_SVC_NAME
 			);
-		
+#endif		

>-----Original Message-----
>From: Alex Naslednikov [mailto:xalex at mellanox.co.il]
>Sent: Sunday, June 19, 2011 5:27 AM
>To: Alex Naslednikov; ofw at lists.openfabrics.org; Smith, Stan
>Subject: RE: [ofw] [Patches 6-7/26][Core] [Gutils]Adjust code to remove Prefast errors and warning
>
>Prefast: add driver directives
>
>
>
>
>Alexander (XaleX) Naslednikov
>SW Networking Team
>Mellanox Technologies




More information about the ofw mailing list