# "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine

6 messages from 2014-07-28 to 2014-07-29. Participants: Duy Nguyen, Torsten Bögershausen, Michael Stefaniuc, Karsten Blees.
Thread: https://gitlist.dev/t/37225

## Duy Nguyen, 2014-07-28 10:39

Subject: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine
Message-ID: <CACsJy8DFvTHieQc-nZL2h7JbQYc4Qkbx+Ouc297VpNeU=kNaoQ@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8DFvTHieQc-nZL2h7JbQYc4Qkbx%2BOuc297VpNeU%3DkNaoQ%40mail.gmail.com

```
I know wine is kind of second citizen but is there a cheap trick to
make it work on wine? Reverting fcd428f (Win32: fix broken pipe
detection - 2012-03-01) could result in conflicts in compat that I'm
not comfortable resolving. I don't have Windows at home. Wine is the
only option for me (or if somebody has a modern.ie image for KVM, or a
simple recipe to make one, that'd be great). "Fix wine" is not really
an option.
-- 
Duy

```

## Torsten Bögershausen, 2014-07-29 06:30

Subject: Re: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine
Message-ID: <53D73F7D.1010902@web.de>
URL: https://gitlist.dev/e/53D73F7D.1010902%40web.de
In-Reply-To: <CACsJy8DFvTHieQc-nZL2h7JbQYc4Qkbx+Ouc297VpNeU=kNaoQ@mail.gmail.com>

```
On 07/28/2014 12:39 PM, Duy Nguyen wrote:
> I know wine is kind of second citizen but is there a cheap trick to
> make it work on wine? Reverting fcd428f (Win32: fix broken pipe
> detection - 2012-03-01) could result in conflicts in compat that I'm
> not comfortable resolving. I don't have Windows at home. Wine is the
> only option for me (or if somebody has a modern.ie image for KVM, or a
> simple recipe to make one, that'd be great). "Fix wine" is not really
> an option.
Is it only that patch that needs to be reverted to make things work got 
wine?
For me It seems as if the patch is not that huge, and manually do a 
copy-paste
with the help of a diff tool can be done.

It seems as if even both implemenations can live side-by-side in the code.
And if there is a run-time detection for wine, we could switch between the
old one and the new one which is dependent on how MSVCRT.dll has layed out
internal data structures:
  "ioinfo structure (exposed by MSVCRT.dll via  __pioinfo"

Sorry being not more helpful

```

## Michael Stefaniuc, 2014-07-29 12:20

Subject: Re: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine
Message-ID: <53D7917B.8060100@redhat.com>
URL: https://gitlist.dev/e/53D7917B.8060100%40redhat.com
In-Reply-To: <53D73F7D.1010902@web.de>

```
On 07/29/2014 08:30 AM, Torsten Bögershausen wrote:
> On 07/28/2014 12:39 PM, Duy Nguyen wrote:
>> I know wine is kind of second citizen but is there a cheap trick to
>> make it work on wine? Reverting fcd428f (Win32: fix broken pipe
>> detection - 2012-03-01) could result in conflicts in compat that I'm
>> not comfortable resolving. I don't have Windows at home. Wine is the
>> only option for me (or if somebody has a modern.ie image for KVM, or a
>> simple recipe to make one, that'd be great). "Fix wine" is not really
>> an option.
Why is fixing Wine not an option? The guy working on MSVCRT in Wine is
very responsive; all that is needed is just a bug in
https://bugs.winehq.org/ and he'll look at it. Or give me more details
and I'll create the bug entry.

> Is it only that patch that needs to be reverted to make things work got
> wine?
> For me It seems as if the patch is not that huge, and manually do a
> copy-paste
> with the help of a diff tool can be done.
> 
> It seems as if even both implemenations can live side-by-side in the code.
> And if there is a run-time detection for wine, we could switch between the
We frown upon detecting Wine just to workaround bugs there.
If one insists on workarounding Wine then please detect the broken
behavior instead. That way the app will automatically use the default
code path once Wine is fixed.

> old one and the new one which is dependent on how MSVCRT.dll has layed out
> internal data structures:
>  "ioinfo structure (exposed by MSVCRT.dll via  __pioinfo"

bye
	michael

```

## Duy Nguyen, 2014-07-29 13:05

Subject: Re: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine
Message-ID: <CACsJy8Att+O7fF-2mMjqkfm75yXihfJNWutGDAqUkZs34pKLGw@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8Att%2BO7fF-2mMjqkfm75yXihfJNWutGDAqUkZs34pKLGw%40mail.gmail.com
In-Reply-To: <53D7917B.8060100@redhat.com>

```
On Tue, Jul 29, 2014 at 7:20 PM, Michael Stefaniuc <mstefani@redhat.com> wrote:
> On 07/29/2014 08:30 AM, Torsten Bögershausen wrote:
>> On 07/28/2014 12:39 PM, Duy Nguyen wrote:
>>> I know wine is kind of second citizen but is there a cheap trick to
>>> make it work on wine? Reverting fcd428f (Win32: fix broken pipe
>>> detection - 2012-03-01) could result in conflicts in compat that I'm
>>> not comfortable resolving. I don't have Windows at home. Wine is the
>>> only option for me (or if somebody has a modern.ie image for KVM, or a
>>> simple recipe to make one, that'd be great). "Fix wine" is not really
>>> an option.
> Why is fixing Wine not an option? The guy working on MSVCRT in Wine is
> very responsive; all that is needed is just a bug in
> https://bugs.winehq.org/ and he'll look at it. Or give me more details
> and I'll create the bug entry.

Not an option as in "_I_ will be working on it". I don't suppose lots
of people use git on wine to be worth the trouble, but then again
making wine msvcrt more compatible is probably a good thing so I'll
open a bug for wine.
-- 
Duy

```

## Michael Stefaniuc, 2014-07-29 13:28

Subject: Re: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine
Message-ID: <53D7A17D.5010206@redhat.com>
URL: https://gitlist.dev/e/53D7A17D.5010206%40redhat.com
In-Reply-To: <CACsJy8Att+O7fF-2mMjqkfm75yXihfJNWutGDAqUkZs34pKLGw@mail.gmail.com>

```
On 07/29/2014 03:05 PM, Duy Nguyen wrote:
> On Tue, Jul 29, 2014 at 7:20 PM, Michael Stefaniuc <mstefani@redhat.com> wrote:
>> On 07/29/2014 08:30 AM, Torsten Bögershausen wrote:
>>> On 07/28/2014 12:39 PM, Duy Nguyen wrote:
>>>> I know wine is kind of second citizen but is there a cheap trick to
>>>> make it work on wine? Reverting fcd428f (Win32: fix broken pipe
>>>> detection - 2012-03-01) could result in conflicts in compat that I'm
>>>> not comfortable resolving. I don't have Windows at home. Wine is the
>>>> only option for me (or if somebody has a modern.ie image for KVM, or a
>>>> simple recipe to make one, that'd be great). "Fix wine" is not really
>>>> an option.
>> Why is fixing Wine not an option? The guy working on MSVCRT in Wine is
>> very responsive; all that is needed is just a bug in
>> https://bugs.winehq.org/ and he'll look at it. Or give me more details
>> and I'll create the bug entry.
> 
> Not an option as in "_I_ will be working on it". I don't suppose lots
> of people use git on wine to be worth the trouble, but then again
> making wine msvcrt more compatible is probably a good thing so I'll
> open a bug for wine.
Thanks! This is actually a very important use case for Wine:
Making it easy for OSS developers to test the Windows builds of their
software without having to use Windows.

bye
	michael

```

## Karsten Blees, 2014-07-29 19:55

Subject: Re: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine
Message-ID: <53D7FC3B.9070001@gmail.com>
URL: https://gitlist.dev/e/53D7FC3B.9070001%40gmail.com
In-Reply-To: <CACsJy8DFvTHieQc-nZL2h7JbQYc4Qkbx+Ouc297VpNeU=kNaoQ@mail.gmail.com>

```
Am 28.07.2014 12:39, schrieb Duy Nguyen:
> I know wine is kind of second citizen but is there a cheap trick to
> make it work on wine? Reverting fcd428f (Win32: fix broken pipe
> detection - 2012-03-01) could result in conflicts in compat that I'm
> not comfortable resolving. I don't have Windows at home. Wine is the
> only option for me (or if somebody has a modern.ie image for KVM, or a
> simple recipe to make one, that'd be great). "Fix wine" is not really
> an option.
> 

Have you tried using a native msvcrt.dll instead of the Wine stub?
Downloading msvcrt.dll 7.0.2600 from dll-files.com and extracting it to
~/.wine/drive_c/Windows/System32 fixed the error message for me.

(The newest versions don't work as they depend on a bunch of other
dlls that you'd need too.)

```
