Author: akhaldi
Date: Wed Jul 22 00:40:38 2015
New Revision: 68538
URL:
http://svn.reactos.org/svn/reactos?rev=68538&view=rev
Log:
[VERSION] Sync with Wine Staging 1.7.47. CORE-9924
Modified:
trunk/reactos/dll/win32/version/version.c
trunk/reactos/media/doc/README.WINE
Modified: trunk/reactos/dll/win32/version/version.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/version/version.…
==============================================================================
--- trunk/reactos/dll/win32/version/version.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/version/version.c [iso-8859-1] Wed Jul 22 00:40:38 2015
@@ -607,11 +607,34 @@
*/
DWORD WINAPI GetFileVersionInfoSizeW( LPCWSTR filename, LPDWORD handle )
{
+ return GetFileVersionInfoSizeExW( 0, filename, handle );
+}
+
+/***********************************************************************
+ * GetFileVersionInfoSizeA [VERSION.@]
+ */
+DWORD WINAPI GetFileVersionInfoSizeA( LPCSTR filename, LPDWORD handle )
+{
+ return GetFileVersionInfoSizeExA( 0, filename, handle );
+}
+
+/******************************************************************************
+ * GetFileVersionInfoSizeExW [VERSION.@]
+ */
+DWORD WINAPI GetFileVersionInfoSizeExW( DWORD flags, LPCWSTR filename, LPDWORD handle )
+{
DWORD len, offset, magic = 1;
HFILE lzfd;
HMODULE hModule;
OFSTRUCT ofs;
+ if (flags)
+ {
+ FIXME("stub: %x %s %p\n", flags, wine_dbgstr_w(filename), handle);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+ }
+
TRACE("(%s,%p)\n", debugstr_w(filename), handle );
if (handle) *handle = 0;
@@ -636,7 +659,7 @@
if ((magic == 1) && (hModule = LoadLibraryExW( filename, 0,
LOAD_LIBRARY_AS_DATAFILE )))
{
HRSRC hRsrc = FindResourceW( hModule, MAKEINTRESOURCEW(VS_VERSION_INFO),
- MAKEINTRESOURCEW(VS_FILE_INFO) );
+ (LPWSTR)VS_FILE_INFO );
if (hRsrc)
{
magic = IMAGE_NT_SIGNATURE;
@@ -676,10 +699,10 @@
}
}
-/***********************************************************************
- * GetFileVersionInfoSizeA [VERSION.@]
- */
-DWORD WINAPI GetFileVersionInfoSizeA( LPCSTR filename, LPDWORD handle )
+/******************************************************************************
+ * GetFileVersionInfoSizeExA [VERSION.@]
+ */
+DWORD WINAPI GetFileVersionInfoSizeExA( DWORD flags, LPCSTR filename, LPDWORD handle )
{
UNICODE_STRING filenameW;
DWORD retval;
@@ -691,7 +714,7 @@
else
filenameW.Buffer = NULL;
- retval = GetFileVersionInfoSizeW(filenameW.Buffer, handle);
+ retval = GetFileVersionInfoSizeExW(0, filenameW.Buffer, handle);
RtlFreeUnicodeString(&filenameW);
@@ -699,10 +722,9 @@
}
/***********************************************************************
- * GetFileVersionInfoW [VERSION.@]
- */
-BOOL WINAPI GetFileVersionInfoW( LPCWSTR filename, DWORD handle,
- DWORD datasize, LPVOID data )
+ * GetFileVersionInfoExW [VERSION.@]
+ */
+BOOL WINAPI GetFileVersionInfoExW( DWORD flags, LPCWSTR filename, DWORD handle, DWORD
datasize, LPVOID data )
{
static const char signature[4] = "FE2X";
DWORD len, offset, magic = 1;
@@ -711,6 +733,13 @@
HMODULE hModule;
VS_VERSION_INFO_STRUCT32* vvis = data;
+ if (flags)
+ {
+ FIXME("stub: %x %s %u %u %p\n", flags, wine_dbgstr_w(filename), handle,
datasize, data);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+ }
+
TRACE("(%s,%d,size=%d,data=%p)\n",
debugstr_w(filename), handle, datasize, data );
@@ -733,7 +762,7 @@
if ((magic == 1) && (hModule = LoadLibraryExW( filename, 0,
LOAD_LIBRARY_AS_DATAFILE )))
{
HRSRC hRsrc = FindResourceW( hModule, MAKEINTRESOURCEW(VS_VERSION_INFO),
- MAKEINTRESOURCEW(VS_FILE_INFO) );
+ (LPWSTR)VS_FILE_INFO );
if (hRsrc)
{
HGLOBAL hMem = LoadResource( hModule, hRsrc );
@@ -774,10 +803,9 @@
}
/***********************************************************************
- * GetFileVersionInfoA [VERSION.@]
- */
-BOOL WINAPI GetFileVersionInfoA( LPCSTR filename, DWORD handle,
- DWORD datasize, LPVOID data )
+ * GetFileVersionInfoExA [VERSION.@]
+ */
+BOOL WINAPI GetFileVersionInfoExA( DWORD flags, LPCSTR filename, DWORD handle, DWORD
datasize, LPVOID data )
{
UNICODE_STRING filenameW;
BOOL retval;
@@ -790,11 +818,27 @@
else
filenameW.Buffer = NULL;
- retval = GetFileVersionInfoW(filenameW.Buffer, handle, datasize, data);
+ retval = GetFileVersionInfoExW(flags, filenameW.Buffer, handle, datasize, data);
RtlFreeUnicodeString(&filenameW);
return retval;
+}
+
+/***********************************************************************
+ * GetFileVersionInfoW [VERSION.@]
+ */
+BOOL WINAPI GetFileVersionInfoW( LPCWSTR filename, DWORD handle, DWORD datasize, LPVOID
data )
+{
+ return GetFileVersionInfoExW(0, filename, handle, datasize, data);
+}
+
+/***********************************************************************
+ * GetFileVersionInfoA [VERSION.@]
+ */
+BOOL WINAPI GetFileVersionInfoA( LPCSTR filename, DWORD handle, DWORD datasize, LPVOID
data )
+{
+ return GetFileVersionInfoExA(0, filename, handle, datasize, data);
}
/***********************************************************************
@@ -1613,40 +1657,3 @@
HeapFree( GetProcessHeap(), 0, wcurd );
return ret;
}
-
-/******************************************************************************
- * GetFileVersionInfoSizeExA [VERSION.@]
- */
-DWORD WINAPI GetFileVersionInfoSizeExA(DWORD flags, LPCSTR filename, LPDWORD handle)
-{
- FIXME("semi-stub: %u %s %p\n", flags, wine_dbgstr_a(filename), handle);
- return GetFileVersionInfoSizeA(filename, handle);
-
-}
-
-/******************************************************************************
- * GetFileVersionInfoSizeExW [VERSION.@]
- */
-DWORD WINAPI GetFileVersionInfoSizeExW(DWORD flags, LPCWSTR filename, LPDWORD handle)
-{
- FIXME("semi-stub: %u %s %p\n", flags, wine_dbgstr_w(filename), handle);
- return GetFileVersionInfoSizeW(filename, handle);
-}
-
-/******************************************************************************
- * GetFileVersionInfoExA [VERSION.@]
- */
-BOOL WINAPI GetFileVersionInfoExA(DWORD flags, LPCSTR filename, DWORD handle, DWORD len,
LPVOID data)
-{
- FIXME("semi-stub: %u %s %u %u %p\n", flags, wine_dbgstr_a(filename),
handle, len, data);
- return GetFileVersionInfoA(filename, handle, len, data);
-}
-
-/******************************************************************************
- * GetFileVersionInfoExW [VERSION.@]
- */
-BOOL WINAPI GetFileVersionInfoExW(DWORD flags, LPCWSTR filename, DWORD handle, DWORD len,
LPVOID data)
-{
- FIXME("semi-stub: %u %s %u %u %p\n", flags, wine_dbgstr_w(filename),
handle, len, data);
- return GetFileVersionInfoW(filename, handle, len, data);
-}
Modified: trunk/reactos/media/doc/README.WINE
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Wed Jul 22 00:40:38 2015
@@ -199,7 +199,7 @@
reactos/dll/win32/usp10 # Synced to WineStaging-1.7.47
reactos/dll/win32/uxtheme # Forked
reactos/dll/win32/vbscript # Synced to WineStaging-1.7.47
-reactos/dll/win32/version # Synced to WineStaging-1.7.37
+reactos/dll/win32/version # Synced to WineStaging-1.7.47
reactos/dll/win32/wbemdisp # Synced to WineStaging-1.7.37
reactos/dll/win32/wbemprox # Synced to WineStaging-1.7.37
reactos/dll/win32/windowscodecs # Synced to WineStaging-1.7.37