Author: pschweitzer
Date: Fri Apr 18 03:44:33 2008
New Revision: 33019
URL:
http://svn.reactos.org/svn/reactos?rev=33019&view=rev
Log:
Fixed a bug with file version informations
Modified:
trunk/reactos/dll/win32/shell32/fprop.c
Modified: trunk/reactos/dll/win32/shell32/fprop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/fprop.c?…
==============================================================================
--- trunk/reactos/dll/win32/shell32/fprop.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/fprop.c [iso-8859-1] Fri Apr 18 03:44:33 2008
@@ -435,10 +435,10 @@
if(VerQueryValueW(pBuf, wSlash, &info, &infolen))
{
VS_FIXEDFILEINFO * inf = (VS_FIXEDFILEINFO *)info;
- sprintfW(buff, wVersionFormat,inf->dwFileVersionMS & 0xFFFF0000,
- inf->dwFileVersionMS & 0x0000FFFF,
- inf->dwFileVersionLS & 0xFFFF0000,
- inf->dwFileVersionLS & 0x0000FFFF);
+ sprintfW(buff, wVersionFormat, HIWORD(inf->dwFileVersionMS),
+ LOWORD(inf->dwFileVersionMS),
+ HIWORD(inf->dwFileVersionLS),
+ LOWORD(inf->dwFileVersionLS));
hDlgCtrl = GetDlgItem(hwndDlg, 14001);
TRACE("MS %x LS %x res %s \n",inf->dwFileVersionMS,
inf->dwFileVersionLS, debugstr_w(buff));