Author: winesync
Date: Thu Apr 10 06:28:55 2008
New Revision: 32903
URL:
http://svn.reactos.org/svn/reactos?rev=32903&view=rev
Log:
Autosyncing with Wine HEAD
Modified:
trunk/reactos/dll/win32/version/info.c
trunk/reactos/dll/win32/version/install.c
trunk/reactos/dll/win32/version/version.rbuild
trunk/reactos/dll/win32/version/version_ros.diff
Modified: trunk/reactos/dll/win32/version/info.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/version/info.c?r…
==============================================================================
--- trunk/reactos/dll/win32/version/info.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/version/info.c [iso-8859-1] Thu Apr 10 06:28:55 2008
@@ -253,6 +253,7 @@
if(!hModule)
{
WARN("Could not load %s\n", debugstr_w(filename));
+
return 0;
}
hRsrc = FindResourceW(hModule,
@@ -382,7 +383,10 @@
if(hModule < 32)
{
WARN("Could not load %s\n", debugstr_a(filename));
- return 0;
+ if (hModule == ERROR_BAD_FORMAT)
+ return 0xFFFFFFFF;
+ else
+ return 0x0;
}
hRsrc = FindResource16(hModule,
MAKEINTRESOURCEA(VS_VERSION_INFO),
Modified: trunk/reactos/dll/win32/version/install.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/version/install.…
==============================================================================
--- trunk/reactos/dll/win32/version/install.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/version/install.c [iso-8859-1] Thu Apr 10 06:28:55 2008
@@ -367,7 +367,8 @@
LPCSTR pdest;
char destfn[260],tmpfn[260],srcfn[260];
HFILE hfsrc,hfdst;
- DWORD attr,ret,xret,tmplast;
+ DWORD attr,xret,tmplast;
+ LONG ret;
LPBYTE buf1,buf2;
OFSTRUCT ofs;
@@ -419,30 +420,31 @@
}
ret = LZCopy(hfsrc,hfdst);
_lclose(hfdst);
- if (((LONG)ret) < 0) {
+ if (ret < 0) {
/* translate LZ errors into VIF_xxx */
switch (ret) {
case LZERROR_BADINHANDLE:
case LZERROR_READ:
case LZERROR_BADVALUE:
case LZERROR_UNKNOWNALG:
- ret = VIF_CANNOTREADSRC;
+ xret = VIF_CANNOTREADSRC;
break;
case LZERROR_BADOUTHANDLE:
case LZERROR_WRITE:
- ret = VIF_OUTOFSPACE;
+ xret = VIF_OUTOFSPACE;
break;
case LZERROR_GLOBALLOC:
case LZERROR_GLOBLOCK:
- ret = VIF_OUTOFMEMORY;
+ xret = VIF_OUTOFMEMORY;
break;
default: /* unknown error, should not happen */
- ret = 0;
+ FIXME("Unknown LZCopy error %d, ignoring.\n", ret);
+ xret = 0;
break;
}
- if (ret) {
+ if (xret) {
LZClose(hfsrc);
- return ret;
+ return xret;
}
}
}
Modified: trunk/reactos/dll/win32/version/version.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/version/version.…
==============================================================================
--- trunk/reactos/dll/win32/version/version.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/version/version.rbuild [iso-8859-1] Thu Apr 10 06:28:55 2008
@@ -1,19 +1,21 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
-<module name="version" type="win32dll" entrypoint="0"
baseaddress="${BASEADDRESS_VERSION}" installbase="system32"
installname="version.dll" allowwarnings="true">
+<group>
+<module name="version" type="win32dll"
baseaddress="${BASEADDRESS_VERSION}" installbase="system32"
installname="version.dll" allowwarnings="true"
entrypoint="0">
<importlibrary definition="version.spec.def" />
<include base="version">.</include>
<include base="ReactOS">include/reactos/wine</include>
<define name="__WINESRC__" />
<define name="WINVER">0x600</define>
<define name="_WIN32_WINNT">0x600</define>
- <library>wine</library>
- <library>lz32</library>
- <library>kernel32</library>
- <library>ntdll</library>
<file>info.c</file>
<file>install.c</file>
<file>resource.c</file>
<file>version.rc</file>
<file>version.spec</file>
+ <library>wine</library>
+ <library>lz32</library>
+ <library>kernel32</library>
+ <library>ntdll</library>
</module>
+</group>
Modified: trunk/reactos/dll/win32/version/version_ros.diff
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/version/version_…
==============================================================================
--- trunk/reactos/dll/win32/version/version_ros.diff [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/version/version_ros.diff [iso-8859-1] Thu Apr 10 06:28:55
2008
@@ -10,7 +10,7 @@
#include "wine/winuser16.h"
#include "wine/unicode.h"
#include "winerror.h"
-@@ -302,6 +303,7 @@
+@@ -303,6 +304,7 @@
return len;
}
@@ -18,7 +18,7 @@
/***********************************************************************
* VERSION_GetFileVersionInfo_16 [internal]
*
-@@ -435,6 +438,7 @@
+@@ -439,6 +442,7 @@
return len;
}
@@ -26,7 +26,7 @@
/***********************************************************************
* GetFileVersionInfoSizeW [VERSION.@]
-@@ -468,6 +471,10 @@
+@@ -472,6 +475,10 @@
if (!len)
{
@@ -37,7 +37,7 @@
LPSTR filenameA;
len = WideCharToMultiByte( CP_ACP, 0, filename, -1, NULL, 0, NULL, NULL );
-@@ -499,6 +506,7 @@
+@@ -503,6 +510,7 @@
* doesn't seem to be a problem (len is bigger than info->wLength).
*/
len = (len - sizeof(VS_FIXEDFILEINFO)) * 4;
@@ -45,7 +45,7 @@
}
else
{
-@@ -563,6 +571,10 @@
+@@ -567,6 +575,10 @@
if (!len)
{
@@ -56,7 +56,7 @@
LPSTR filenameA;
len = WideCharToMultiByte( CP_ACP, 0, filename, -1, NULL, 0, NULL, NULL );
-@@ -578,6 +590,7 @@
+@@ -582,6 +594,7 @@
return FALSE;
}
/* We have a 16bit resource. */