SB

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Smith, Stan
Sent: Wednesday, June 22, 2011 8:55 PM
To: Alex Naslednikov; [email protected]
Subject: Re: [ofw] [Patches 6-7/26][Core] [Gutils]Adjust code to remove Prefast 
errors and warning

Is '#ifdef DRIVER' new?
[UH] It's already defined in SOURCES file

Why not use existing complib '#ifdef CL_KERNEL'  if ' RtlStringCchCopyA()' is 
not available in user mode?
[UH] I'm okay to  use CL_KERNEL for consistency 


+#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
_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to