CreateFile access/sharing problem

2005-10-07 Thread Michael Ost
Vitaliy wrote on Oct 6: > I think this is the way it might look like. It's a hack and not the > real solution. I tested out your patch from Oct 6 on my CreateFile() ReadFile() test program and it worked. Just thought you might like to know... mo

Re: CreateFile access/sharing problem

2005-10-06 Thread Bill Medland
On October 5, 2005 11:10 pm, Vitaliy Margolen wrote: > > I think this is the way it might look like. It's a hack and > not the real solution. > > WARNING: > I haven't tested this beyond notepad so it might not work at > all or have some major problems. For all I know it might wipe > out your entire

Re: CreateFile access/sharing problem

2005-10-05 Thread Vitaliy Margolen
Wednesday, October 5, 2005, 10:57:48 PM, Robert Shearman wrote: > Bill Medland wrote: >>On October 5, 2005 03:56 pm, Robert Shearman wrote: >> >> >>> There is a port of that function into >>> >>>wineserver in server/token.c called map_generic_mask that I >>>used for the purpose of mapping generi

Re: CreateFile access/sharing problem

2005-10-05 Thread Robert Shearman
Bill Medland wrote: On October 5, 2005 03:56 pm, Robert Shearman wrote: There is a port of that function into wineserver in server/token.c called map_generic_mask that I used for the purpose of mapping generic access rights in the token functions. The problem with translating from generic a

Re: CreateFile access/sharing problem

2005-10-05 Thread Michael Ost
On Wed, 2005-10-05 at 20:05, Dmitry Timoshkov wrote: > "Michael Ost" <[EMAIL PROTECTED]> wrote: > > > Does this patch look dangerous in any way to those of you who know your > > way around this code? It's done in NtCreateFile after a bunch of > > non-file types (like mail slots, etc) are handled.

Re: CreateFile access/sharing problem

2005-10-05 Thread Dmitry Timoshkov
"Michael Ost" <[EMAIL PROTECTED]> wrote: > Does this patch look dangerous in any way to those of you who know your > way around this code? It's done in NtCreateFile after a bunch of > non-file types (like mail slots, etc) are handled. While this patch may work for you it's certainly not correct.

Re: CreateFile access/sharing problem

2005-10-05 Thread Michael Ost
On Mon, 2005-10-03 at 21:08, Dmitry Timoshkov wrote: > "Michael Ost" <[EMAIL PROTECTED]> wrote: > > My "solution" (polite term) was to force GENERIC_READ|GENERIC_WRITE > > access in ntdll/NtCreateFile if the sharing type is FILE_SHARE_WRITE. > > Most likely sharing mode has nothing to do with acce

Re: CreateFile access/sharing problem

2005-10-05 Thread Bill Medland
On October 5, 2005 03:56 pm, Robert Shearman wrote: > Dmitry Timoshkov wrote: > >"Vitaliy Margolen" <[EMAIL PROTECTED]> wrote: > >>It is an additional flags to the rest of the file flags > >> because they are transferred all the way to the kernel. And > >> being translated into specific access righ

Re: CreateFile access/sharing problem

2005-10-05 Thread Robert Shearman
Dmitry Timoshkov wrote: "Vitaliy Margolen" <[EMAIL PROTECTED]> wrote: It is an additional flags to the rest of the file flags because they are transferred all the way to the kernel. And being translated into specific access rights by an object manager according to the object type. It has ar

Re: CreateFile access/sharing problem

2005-10-04 Thread Eric Pouech
Vitaliy Margolen wrote: Monday, October 3, 2005, 11:21:37 PM, Dmitry Timoshkov wrote: "Vitaliy Margolen" <[EMAIL PROTECTED]> wrote: It is an additional flags to the rest of the file flags because they are transferred all the way to the kernel. And being translated into specific access right

Re: CreateFile access/sharing problem

2005-10-03 Thread Vitaliy Margolen
Monday, October 3, 2005, 11:21:37 PM, Dmitry Timoshkov wrote: > "Vitaliy Margolen" <[EMAIL PROTECTED]> wrote: >> It is an additional flags to the rest of the file flags because they are >> transferred all the way to the kernel. And being translated into specific >> access >> rights by an object m

Re: CreateFile access/sharing problem

2005-10-03 Thread Dmitry Timoshkov
"Vitaliy Margolen" <[EMAIL PROTECTED]> wrote: > It is an additional flags to the rest of the file flags because they are > transferred all the way to the kernel. And being translated into specific > access > rights by an object manager according to the object type. It has array of the > generic a

Re: CreateFile access/sharing problem

2005-10-03 Thread Vitaliy Margolen
Monday, October 3, 2005, 10:08:24 PM, Dmitry Timoshkov wrote: > "Michael Ost" <[EMAIL PROTECTED]> wrote: >> A 3rd party installer program for a VST plugin is calling CreateFile >> with dwDesiredAccess = 0x1f01ff and dwSharedMode = FILE_SHARE_WRITE. It >> then calls ReadFile, which fails in Wine (e

Re: CreateFile access/sharing problem

2005-10-03 Thread Dmitry Timoshkov
"Michael Ost" <[EMAIL PROTECTED]> wrote: > Or did you mean post it to wine-patches? I am totally new to > wine-patches, but I can give it a go... mo Yes, wine-patches is what you need. Do not forget a changelog description for your change. "Dan Kegel" <[EMAIL PROTECTED]> wrote: > $ grep -l 'ope

Re: CreateFile access/sharing problem

2005-10-03 Thread Dan Kegel
On 03 Oct 2005 20:59:13 -0700, Michael Ost <[EMAIL PROTECTED]> wrote: > > Bless your soul. It ought to be pretty easy for someone to > > convert that little program from C++ into C and add it to the Wine test > > suite. (Would you consider doing that?) > > Sure, but I don't know where the tests a

Re: CreateFile access/sharing problem

2005-10-03 Thread Michael Ost
On Mon, 2005-10-03 at 21:08, Dmitry Timoshkov wrote: > > But I did notice that FILE_ALL_ACCESS is a different value in Wine and > > my VC98 headers from DevStudio 6. In Wine it is: > > (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x1ff) > > In VC98: > > (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3ff) > > Is

Re: CreateFile access/sharing problem

2005-10-03 Thread Dmitry Timoshkov
"Michael Ost" <[EMAIL PROTECTED]> wrote: > A 3rd party installer program for a VST plugin is calling CreateFile > with dwDesiredAccess = 0x1f01ff and dwSharedMode = FILE_SHARE_WRITE. It > then calls ReadFile, which fails in Wine (error 5) but succeeds in > WinXP. > > My "solution" (polite term) w

Re: CreateFile access/sharing problem

2005-10-03 Thread Michael Ost
On Mon, 2005-10-03 at 12:14, Dan Kegel wrote: > On 03 Oct 2005 11:20:16 -0700, Michael Ost <[EMAIL PROTECTED]> wrote: > > Any suggestions for how to handle a difference in file access and > > sharing handling between Wine (20050830) and WinXP? A program > > demonstrating the problem is attached bel

Re: CreateFile access/sharing problem

2005-10-03 Thread Bill Medland
On October 3, 2005 11:20 am, Michael Ost wrote: > Any suggestions for how to handle a difference in file access > and sharing handling between Wine (20050830) and WinXP? A > program demonstrating the problem is attached below. > > A 3rd party installer program for a VST plugin is calling > CreateFi

Re: CreateFile access/sharing problem

2005-10-03 Thread Dan Kegel
On 03 Oct 2005 11:20:16 -0700, Michael Ost <[EMAIL PROTECTED]> wrote: > Any suggestions for how to handle a difference in file access and > sharing handling between Wine (20050830) and WinXP? A program > demonstrating the problem is attached below. Bless your soul. It ought to be pretty easy for

CreateFile access/sharing problem

2005-10-03 Thread Michael Ost
Any suggestions for how to handle a difference in file access and sharing handling between Wine (20050830) and WinXP? A program demonstrating the problem is attached below. A 3rd party installer program for a VST plugin is calling CreateFile with dwDesiredAccess = 0x1f01ff and dwSharedMode = FILE_