Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c6516740
Commit
c6516740
authored
Sep 22, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Share version information between DllGetVersion and resource file.
parent
4521ea6e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
7 deletions
+40
-7
shell32_main.c
dlls/shell32/shell32_main.c
+9
-5
version.h
dlls/shell32/version.h
+28
-0
version.rc
dlls/shell32/version.rc
+3
-2
No files found.
dlls/shell32/shell32_main.c
View file @
c6516740
...
...
@@ -41,6 +41,7 @@
#include "undocshell.h"
#include "pidl.h"
#include "shell32_main.h"
#include "version.h"
#include "wine/debug.h"
#include "wine/unicode.h"
...
...
@@ -897,16 +898,19 @@ HRESULT WINAPI SHELL32_DllGetVersion (DLLVERSIONINFO *pdvi)
if
(
pdvi
->
cbSize
==
sizeof
(
DLLVERSIONINFO
)
||
pdvi
->
cbSize
==
sizeof
(
DLLVERSIONINFO2
))
{
pdvi
->
dwMajorVersion
=
4
;
pdvi
->
dwMinorVersion
=
72
;
pdvi
->
dwBuildNumber
=
3110
;
pdvi
->
dwPlatformID
=
DLLVER_PLATFORM_WINDOWS
;
pdvi
->
dwMajorVersion
=
WINE_FILEVERSION_MAJOR
;
pdvi
->
dwMinorVersion
=
WINE_FILEVERSION_MINOR
;
pdvi
->
dwBuildNumber
=
WINE_FILEVERSION_BUILD
;
pdvi
->
dwPlatformID
=
WINE_FILEVERSION_PLATFORMID
;
if
(
pdvi
->
cbSize
==
sizeof
(
DLLVERSIONINFO2
))
{
DLLVERSIONINFO2
*
pdvi2
=
(
DLLVERSIONINFO2
*
)
pdvi
;
pdvi2
->
dwFlags
=
0
;
pdvi2
->
ullVersion
=
MAKEDLLVERULL
(
4
,
72
,
3110
,
0
);
pdvi2
->
ullVersion
=
MAKEDLLVERULL
(
WINE_FILEVERSION_MAJOR
,
WINE_FILEVERSION_MINOR
,
WINE_FILEVERSION_BUILD
,
WINE_FILEVERSION_PLATFORMID
);
}
TRACE
(
"%lu.%lu.%lu.%lu
\n
"
,
pdvi
->
dwMajorVersion
,
pdvi
->
dwMinorVersion
,
...
...
dlls/shell32/version.h
0 → 100644
View file @
c6516740
/*
* Shared Resource/DllGetVersion version information
*
* Copyright (C) 2004 Robert Shearman
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define WINE_FILEVERSION_MAJOR 4
#define WINE_FILEVERSION_MINOR 72
#define WINE_FILEVERSION_BUILD 3110
#define WINE_FILEVERSION_PLATFORMID 1
/* FIXME: when libs/wpp gets fixed to support concatenation we can remove
* this and define it in version.rc */
#define WINE_FILEVERSION "4.72.3110.1"
dlls/shell32/version.rc
View file @
c6516740
...
...
@@ -18,9 +18,10 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "version.h"
#define WINE_OLESELFREGISTER
#define WINE_FILEVERSION 4,0,0,0
#define WINE_FILEVERSION_STR "4.0"
#define WINE_FILEVERSION WINE_FILEVERSION_MAJOR,WINE_FILEVERSION_MINOR,WINE_FILEVERSION_BUILD,WINE_FILEVERSION_PLATFORMID
#define WINE_FILENAME_STR "shell32.dll"
#include <wine/wine_common_ver.rc>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment