Re: [PATCH] mingw: consider that UNICODE_STRING::Length counts bytes

2016-12-20 Thread Junio C Hamano
v Date: Mon, 19 Dec 2016 23:32:00 +0200 Subject: [PATCH] mingw: consider that UNICODE_STRING::Length counts bytes UNICODE_STRING::Length field means size of buffer in bytes[1], despite of buffer itself being array of wchar_t. Because of that terminating zero is placed twice as far. Fix it. [1]

Re: [PATCH] mingw: consider that UNICODE_STRING::Length counts bytes

2016-12-20 Thread Johannes Schindelin
Hi Max, On Mon, 19 Dec 2016, Max Kirillov wrote: > UNICODE_STRING::Length field means size of buffer in bytes[1], despite > of buffer itself being array of wchar_t. Because of that terminating > zero is placed twice as far. Fix it. This commit message needs to be wrapped at <= 76 columns per row

Re: [PATCH] mingw: consider that UNICODE_STRING::Length counts bytes

2016-12-19 Thread Max Kirillov
On Mon, Dec 19, 2016 at 01:57:29PM -0800, Junio C Hamano wrote: > Max, I see this is a resend from a few days ago Sorry about resend. For some reason I don't get the list copy (might be some clever duplicate elimination in my forwardings), and marc.info seems to be slow to update, so I had no indi

Re: [PATCH] mingw: consider that UNICODE_STRING::Length counts bytes

2016-12-19 Thread Junio C Hamano
Max Kirillov writes: > UNICODE_STRING::Length field means size of buffer in bytes[1], despite of > buffer > itself being array of wchar_t. Because of that terminating zero is placed > twice > as far. Fix it. > > [1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa380518.aspx > > Sign

[PATCH] mingw: consider that UNICODE_STRING::Length counts bytes

2016-12-19 Thread Max Kirillov
UNICODE_STRING::Length field means size of buffer in bytes[1], despite of buffer itself being array of wchar_t. Because of that terminating zero is placed twice as far. Fix it. [1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa380518.aspx Signed-off-by: Max Kirillov --- Access outsi

[PATCH] mingw: consider that UNICODE_STRING::Length counts bytes

2016-12-17 Thread Max Kirillov
UNICODE_STRING::Length field means size of buffer in bytes[1], despite of buffer itself being array of wchar_t. Because of that terminating zero is placed twice as far. Fix it. [1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa380518.aspx Signed-off-by: Max Kirillov --- Access outsi