X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:content-type; q=dns; s=default; b= AWOBHRBN0srn+e2cjnWd0tfybtktOon8a9opCWzFgPavt8JF9n9z1P264RY+HeE0 gh+ybhwjI9NYdeyhRE9+rADq944tynTJyZgAHPhLrQvJu7YNmyVZcO7ymW0x9hHm 6cXPmg2Bw6UhLYYTJ2t95OuuR8ipv1lxWP+8XB4LVmA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:content-type; s=default; bh=nBc UvcJ1sCGFXQdAMHoleebSOpI=; b=dAlMCd4V85MoTuXCtdhCEtUl24QP3Iwkjlb rhZIUKR/hZRYaV/E1U+VvW3w7hxGOYHhjXxUxsMKb0VkB+b9KBBjEL+12tZNa10P hwD5W1TZuhrDkWO+qz1BeVZ5ShkYy+qgHIwwc31cTBV7ruIvO4ok4jY0t+RY+jiu nCsFZhzc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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 Reply-To: fracting AT gmail DOT com In-Reply-To: <20150401134554.GW13285@calimero.vinschen.de> References: <20150401103733 DOT GA4835 AT calimero DOT vinschen DOT de> <20150401113620 DOT GA11571 AT calimero DOT vinschen DOT de> <20150401122206 DOT GA5725 AT calimero DOT vinschen DOT de> <20150401134554 DOT GW13285 AT calimero DOT vinschen DOT de> From: Qian Hong Date: Wed, 1 Apr 2015 22:33:05 +0800 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 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