Author: hbelusca
Date: Thu May 1 17:49:23 2014
New Revision: 63095
URL:
http://svn.reactos.org/svn/reactos?rev=63095&view=rev
Log:
[WINVER]: Remove wine'isms and add a resource file.
Added:
trunk/reactos/base/applications/winver/winver.rc (with props)
Modified:
trunk/reactos/base/applications/winver/CMakeLists.txt
trunk/reactos/base/applications/winver/winver.c
Modified: trunk/reactos/base/applications/winver/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/winver/C…
==============================================================================
--- trunk/reactos/base/applications/winver/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/applications/winver/CMakeLists.txt [iso-8859-1] Thu May 1 17:49:23
2014
@@ -1,6 +1,5 @@
-
-add_executable(winver winver.c)
+add_executable(winver winver.c winver.rc)
set_module_type(winver win32gui UNICODE)
add_importlibs(winver shell32 msvcrt kernel32)
add_cd_file(TARGET winver DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/base/applications/winver/winver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/winver/w…
==============================================================================
--- trunk/reactos/base/applications/winver/winver.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/winver/winver.c [iso-8859-1] Thu May 1 17:49:23 2014
@@ -1,3 +1,9 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS Version Program
+ * FILE: winver.c
+ */
+
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
@@ -5,11 +11,10 @@
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int
nCmdShow)
{
- static const WCHAR szROS[] = {
'R','e','a','c','t','O','S',0 };
- UNREFERENCED_PARAMETER(lpCmdLine);
- UNREFERENCED_PARAMETER(nCmdShow);
- UNREFERENCED_PARAMETER(hPrevInstance);
- UNREFERENCED_PARAMETER(hInstance);
- ShellAboutW(0, szROS, 0, 0);
- return 1;
+ UNREFERENCED_PARAMETER(hInstance);
+ UNREFERENCED_PARAMETER(hPrevInstance);
+ UNREFERENCED_PARAMETER(lpCmdLine);
+ UNREFERENCED_PARAMETER(nCmdShow);
+
+ return ShellAboutW(NULL, L"ReactOS", NULL, NULL);
}
Added: trunk/reactos/base/applications/winver/winver.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/winver/w…
==============================================================================
--- trunk/reactos/base/applications/winver/winver.rc (added)
+++ trunk/reactos/base/applications/winver/winver.rc [iso-8859-1] Thu May 1 17:49:23
2014
@@ -0,0 +1,5 @@
+
+#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Version Program"
+#define REACTOS_STR_INTERNAL_NAME "winver"
+#define REACTOS_STR_ORIGINAL_FILENAME "winver.exe"
+#include <reactos/version.rc>
Propchange: trunk/reactos/base/applications/winver/winver.rc
------------------------------------------------------------------------------
svn:eol-style = native