Re: kernel32: Implement ReplaceFileA/ReplaceFileW (revised, resubmit)

2007-04-06 Thread Erich Hoover
I'll look into that case a bit this weekend if I can get the chance, I have a busy schedule right now. My original patch did a series of renames (though it had some other issues): http://www.winehq.org/pipermail/wine-patches/2007-February/036394.html However, talking with Felix Nawothnig on wine-

re: kernel32: Implement ReplaceFileA/ReplaceFileW (revised, resubmit)

2007-04-03 Thread Dan Kegel
Kudos for your persistance. I hope this makes it in soon. I see two remaining problems: +/* + * This case should never occur, we've already checked permissions earlier + * and we are holding the file handle open. + */ +ERR("Replacement file may not be del

Re: kernel32: Implement ReplaceFileA/ReplaceFileW (revised)

2007-03-22 Thread Steven Edwards
On 3/19/07, Erich Hoover <[EMAIL PROTECTED]> wrote: I still have not received any comments on the revised version of the attached patch. I would appreciate any suggestions. Should I maybe re-submit this patch? Yes. The policy is to wait a week and if its not made it in to git then resubmit.

Re: kernel32: Implement ReplaceFileA/ReplaceFileW (revised)

2007-03-20 Thread Erich Hoover
hq.com/site/sending_patches. Thanks! Erich Hoover [EMAIL PROTECTED] -- Forwarded message -- From: Erich Hoover <[EMAIL PROTECTED]> Date: Mar 3, 2007 2:37 PM Subject: kernel32: Implement ReplaceFileA/ReplaceFileW (revised) To: [EMAIL PROTECTED] Real Name: Erich Hoover

Fwd: kernel32: Implement ReplaceFileA/ReplaceFileW (revised)

2007-03-08 Thread Erich Hoover
Request for comments, as per http://www.winehq.com/site/sending_patches. Thanks! Erich Hoover [EMAIL PROTECTED] -- Forwarded message -- From: Erich Hoover <[EMAIL PROTECTED]> Date: Mar 3, 2007 2:37 PM Subject: kernel32: Implement ReplaceFileA/ReplaceFileW (revised) To:

Re: kernel32: Implement ReplaceFileA/ReplaceFileW

2007-03-02 Thread Felix Nawothnig
Erich Hoover wrote: I see your point. However, since the function you are implementing is in kernel32 anyway you could abstract it away and make both functions (CopyFile and ReplaceFile) call some internal function. That way you would get rid of the locking completly which is argueably somewhat u

Re: kernel32: Implement ReplaceFileA/ReplaceFileW

2007-03-01 Thread Erich Hoover
I see your point. However, since the function you are implementing is in kernel32 anyway you could abstract it away and make both functions (CopyFile and ReplaceFile) call some internal function. That way you would get rid of the locking completly which is argueably somewhat ugly. On closer inspe

Re: kernel32: Implement ReplaceFileA/ReplaceFileW

2007-02-28 Thread Felix Nawothnig
Erich Hoover wrote: The "right" way would probably to do the copying yourself by read/write.. but I dunno. Except that it would ignore the permissions issues that have already been coded into the copy routines (and any updates that may eventually No, CreateFile (and friends) does the permission

Re: kernel32: Implement ReplaceFileA/ReplaceFileW

2007-02-28 Thread Erich Hoover
Oops, I must have hit the wrong reply button. The "right" way would probably to do the copying yourself by read/write.. but I dunno. Except that it would ignore the permissions issues that have already been coded into the copy routines (and any updates that may eventually No, CreateFile (and f

Re: kernel32: Implement ReplaceFileA/ReplaceFileW

2007-02-28 Thread Felix Nawothnig
(CC-ing wine-devel again) Erich Hoover wrote: The "right" way would probably to do the copying yourself by read/write.. but I dunno. Except that it would ignore the permissions issues that have already been coded into the copy routines (and any updates that may eventually No, CreateFile (and

Re: kernel32: Implement ReplaceFileA/ReplaceFileW

2007-02-27 Thread Erich Hoover
Is the attached more like what you're looking for? Erich Hoover [EMAIL PROTECTED] On 2/26/07, Felix Nawothnig <[EMAIL PROTECTED]> wrote: Erich Hoover wrote: > I assume you're referring to the file existence check and file delete, > followed by the actual copy and move. I implemented these che

Re: kernel32: Implement ReplaceFileA/ReplaceFileW

2007-02-26 Thread Felix Nawothnig
Erich Hoover wrote: Is the attached more like what you're looking for? I did some investigation and... actually I'm looking for an equivalent to the linux splice syscall. Win32 is the most braindead API ever. Duh. The "right" way would probably to do the copying yourself by read/write.. but

Re: kernel32: Implement ReplaceFileA/ReplaceFileW

2007-02-26 Thread Erich Hoover
; (Bug #7544). Also provides conformance test code to ensure proper > functionality. > Changelog: > kernel32: Implement ReplaceFileA/ReplaceFileW Your patch seems to introduce lots of race cons. It's possible these exist on Win32 too but can't we avoid them?

Re: kernel32: Implement ReplaceFileA/ReplaceFileW

2007-02-26 Thread Felix Nawothnig
Erich Hoover wrote: I assume you're referring to the file existence check and file delete, followed by the actual copy and move. I implemented these checks in this manner in order to provide error codes consistent with the documentation. I am not incredibly familiar with the Wine internals,

Re: kernel32: Implement ReplaceFileA/ReplaceFileW

2007-02-26 Thread Felix Nawothnig
Erich Hoover wrote: Real Name: Erich Hoover Description: Implements the functions ReplaceFileA and ReplaceFileW in kernel32 (Bug #7544). Also provides conformance test code to ensure proper functionality. Changelog: kernel32: Implement ReplaceFileA/ReplaceFileW Your patch seems