X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@gmail.com
In-Reply-To: <20150401134554.GW13285@calimero.vinschen.de>
References: <CALd+sZQu4496pEW-B9eCsS-EC426uSgieh9cjECe5reBW52GQQ@mail.gmail.com> <20150401103733.GA4835@calimero.vinschen.de> <CALd+sZQaBX1aioKZkt2uNGGgPUJN+i=ZLEr9ipO9iC7V_1CRSg@mail.gmail.com> <20150401113620.GA11571@calimero.vinschen.de> <20150401122206.GA5725@calimero.vinschen.de> <CALd+sZSrpWp8O+MTVSVaiNYupSnjLr2_uGz=9Bxp-zjqjkEhgw@mail.gmail.com> <20150401134554.GW13285@calimero.vinschen.de>
From: Qian Hong <fracting@gmail.com>
Date: Wed, 1 Apr 2015 22:33:05 +0800
Message-ID: <CALd+sZRvmiWtqj=0UZgC3=Coj8wo2H38Eci+oWHkiALKr3TmxA@mail.gmail.com>
Subject: Re: Cygwin / MSYS2 runtime fails on Wine beause of accessing to (*ReferencedDomains)->Domains[-1]
To: cygwin <cygwin@cygwin.com>
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

Hi Corinna,

On Wed, Apr 1, 2015 at 9:45 PM, Corinna Vinschen
<corinna-cygwin@cygwin.com> 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

