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:[email protected]]
>Sent: Sunday, June 19, 2011 5:27 AM
>To: Alex Naslednikov; [email protected]; 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

_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to