[cvsnt] Fwd: [cvsnt-commits] CVS Update: cvsnt

Alexey Panchenko alexey-panchenko at hotmail.ru
Wed Dec 10 04:49:34 GMT 2003


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Hello Tony,

Can you revert one more line in function "int win32_isadmin()"

Index: win32.c
===================================================================
RCS file: /usr/local/cvs/cvsnt/windows-NT/win32.c,v
retrieving revision 1.72.2.6
diff -u -U9 -r1.72.2.6 win32.c
--- win32.c     9 Dec 2003 19:36:51 -0000       1.72.2.6
+++ win32.c     10 Dec 2003 04:47:44 -0000
@@ -759,19 +759,19 @@
                                int numchars;
         
                                MultiByteToWideChar(CP_ACP,0,ptr+1,-1,w_name,UNLEN+1);
                                numchars = MultiByteToWideChar(CP_ACP,0,CVS_Username,ptr-CVS_Username,w_domain,DNLEN);
         
                                if (numchars >= 0)
                                        w_domain[numchars] = 0;
         
                                // May fail for workgroup-only NT boxen (Patch from jonathan.gilligan at vanderbilt.edu)
-                               CVSNetGetAnyDCName(NULL,w_domain,w_pdc); 
+                               NetGetAnyDCName(NULL,w_domain,w_pdc); 
                        } 
                        else
                        {
                        MultiByteToWideChar(CP_ACP,0,CVS_Username,-1,w_name,UNLEN+1);
          
                        if(NetWkstaUserGetInfo(NULL,1,(LPBYTE*)&wk_info)==NERR_Success)
                                w_pdc = wk_info->wkui1_logon_server;
                        else
                                NetGetAnyDCName(NULL,NULL,(LPBYTE*)&w_pdc); 

-- 
Best regards,
 Alexey                            mailto:alexey-panchenko at hotmail.ru




More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook