mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Add back changes of revision 16783. Sorry Alex
svn path=/trunk/; revision=16937
This commit is contained in:
parent
f89cc27ede
commit
fc10b038f5
1 changed files with 4 additions and 4 deletions
|
@ -979,8 +979,8 @@ BOOL static do_file_copyW( LPCWSTR source, LPCWSTR target, DWORD style)
|
||||||
if ((GetFileAttributesW(target) != INVALID_FILE_ATTRIBUTES) &&
|
if ((GetFileAttributesW(target) != INVALID_FILE_ATTRIBUTES) &&
|
||||||
(GetFileAttributesW(source) != INVALID_FILE_ATTRIBUTES))
|
(GetFileAttributesW(source) != INVALID_FILE_ATTRIBUTES))
|
||||||
{
|
{
|
||||||
VersionSizeSource = GetFileVersionInfoSizeW(source,&zero);
|
VersionSizeSource = GetFileVersionInfoSizeW((LPWSTR)source,&zero);
|
||||||
VersionSizeTarget = GetFileVersionInfoSizeW(target,&zero);
|
VersionSizeTarget = GetFileVersionInfoSizeW((LPWSTR)target,&zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
TRACE("SizeTarget %li ... SizeSource %li\n",VersionSizeTarget,
|
TRACE("SizeTarget %li ... SizeSource %li\n",VersionSizeTarget,
|
||||||
|
@ -999,9 +999,9 @@ BOOL static do_file_copyW( LPCWSTR source, LPCWSTR target, DWORD style)
|
||||||
VersionSource = HeapAlloc(GetProcessHeap(),0,VersionSizeSource);
|
VersionSource = HeapAlloc(GetProcessHeap(),0,VersionSizeSource);
|
||||||
VersionTarget = HeapAlloc(GetProcessHeap(),0,VersionSizeTarget);
|
VersionTarget = HeapAlloc(GetProcessHeap(),0,VersionSizeTarget);
|
||||||
|
|
||||||
ret = GetFileVersionInfoW(source,0,VersionSizeSource,VersionSource);
|
ret = GetFileVersionInfoW((LPWSTR)source,0,VersionSizeSource,VersionSource);
|
||||||
if (ret)
|
if (ret)
|
||||||
ret = GetFileVersionInfoW(target, 0, VersionSizeTarget,
|
ret = GetFileVersionInfoW((LPWSTR)target, 0, VersionSizeTarget,
|
||||||
VersionTarget);
|
VersionTarget);
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Reference in a new issue