From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89402 invoked by alias); 1 Apr 2015 14:33:51 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 89390 invoked by uid 89); 1 Apr 2015 14:33:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-wi0-f170.google.com Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com) (209.85.212.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 01 Apr 2015 14:33:49 +0000 Received: by wiaa2 with SMTP id a2so68995402wia.0 for ; Wed, 01 Apr 2015 07:33:46 -0700 (PDT) X-Received: by 10.180.23.106 with SMTP id l10mr16026435wif.54.1427898826432; Wed, 01 Apr 2015 07:33:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.13.135 with HTTP; Wed, 1 Apr 2015 07:33:05 -0700 (PDT) Reply-To: fracting@gmail.com In-Reply-To: <20150401134554.GW13285@calimero.vinschen.de> References: <20150401103733.GA4835@calimero.vinschen.de> <20150401113620.GA11571@calimero.vinschen.de> <20150401122206.GA5725@calimero.vinschen.de> <20150401134554.GW13285@calimero.vinschen.de> From: Qian Hong Date: Wed, 01 Apr 2015 14:33:00 -0000 Message-ID: Subject: Re: Cygwin / MSYS2 runtime fails on Wine beause of accessing to (*ReferencedDomains)->Domains[-1] To: cygwin Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00026.txt.bz2 Hi Corinna, On Wed, Apr 1, 2015 at 9:45 PM, Corinna Vinschen wrote: > That's a crash in wcsncpy. Where's the NULL pointer coming from? > The pointer I created for the domain name points to an empty > unicode string, it's not NULL. > > Oh, hang on. > > On Windows, the name part of the logon sid is the login sid as > a string. So, if the login sid is S-1-5-5-0-1234, the name of the > sid is L"S-1-5-5-0-1234". > > Is it possible that Wine doesn't reflect that? Thanks for the hints, very useful. My previous patch actually fixed(hacked) two independent issue in Wine, sorry for not mention about it, I just forgot. Now Cygwin fixed one, the remain one seems like a Wine bug, nothing to do with Cygwin. With the second issue fixed(hacked) in Wine, Cygwin is happy now. I'll investigate the second issue deeper, maybe your hints is exactly the reason. Thank you very much for the help! -- Regards, Qian Hong - http://www.winehq.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple