mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[VFD] Properly mark ReactOS's diffs
Addendum to 25c7e1a
(0.4.7-dev-1106) and follow-ups.
This commit is contained in:
parent
1abac8f6db
commit
3ff08b6404
15 changed files with 69 additions and 20 deletions
|
@ -11,6 +11,11 @@
|
||||||
;#ifndef _VFDMSG_H_
|
;#ifndef _VFDMSG_H_
|
||||||
;#define _VFDMSG_H_
|
;#define _VFDMSG_H_
|
||||||
;
|
;
|
||||||
|
;/*
|
||||||
|
; __REACTOS__:
|
||||||
|
; - Removed Japanese language.
|
||||||
|
; + Added a second blank line between some entries.
|
||||||
|
;*/
|
||||||
|
|
||||||
MessageIdTypedef=DWORD
|
MessageIdTypedef=DWORD
|
||||||
LanguageNames=(English=0x409:MSG0409)
|
LanguageNames=(English=0x409:MSG0409)
|
||||||
|
@ -1161,6 +1166,7 @@ of the shell extension.
|
||||||
.
|
.
|
||||||
|
|
||||||
|
|
||||||
|
;// __REACTOS__: s/read only/read-only/.
|
||||||
MessageId=
|
MessageId=
|
||||||
SymbolicName=MSG_HELP_OPEN
|
SymbolicName=MSG_HELP_OPEN
|
||||||
Language=English
|
Language=English
|
||||||
|
@ -1360,6 +1366,7 @@ The SAVE command always fails if the target is a ZIP compressed file.
|
||||||
.
|
.
|
||||||
|
|
||||||
|
|
||||||
|
;// __REACTOS__: s/read only/read-only/.
|
||||||
MessageId=
|
MessageId=
|
||||||
SymbolicName=MSG_HELP_PROTECT
|
SymbolicName=MSG_HELP_PROTECT
|
||||||
Language=English
|
Language=English
|
||||||
|
|
|
@ -27,17 +27,15 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma warning(push,3)
|
#pragma warning(push,3)
|
||||||
#endif
|
#endif
|
||||||
#include <ntddk.h>
|
#include <ntddk.h>
|
||||||
#include <ntdddisk.h>
|
#include <ntdddisk.h>
|
||||||
#include <ntverp.h>
|
#include <ntverp.h>
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
// disable unwanted (and trivial) warnings :
|
// disable unwanted (and trivial) warnings :
|
||||||
// 4054 - type cast from a function pointer to a data pointer
|
// 4054 - type cast from a function pointer to a data pointer
|
||||||
// 4201 - anonymous structure
|
// 4201 - anonymous structure
|
||||||
|
@ -179,6 +177,8 @@ typedef struct _MOUNTMGR_MOUNT_POINTS {
|
||||||
|
|
||||||
#endif // (VER_PRODUCTBUILD < 2195)
|
#endif // (VER_PRODUCTBUILD < 2195)
|
||||||
|
|
||||||
|
// __REACTOS__: NTAPI added on some functions in this file, vfddrv.h and some *.c.
|
||||||
|
|
||||||
#if (VER_PRODUCTBUILD < 2600)
|
#if (VER_PRODUCTBUILD < 2600)
|
||||||
//
|
//
|
||||||
// Imports from Windows XP DDK <ntdddisk.h>
|
// Imports from Windows XP DDK <ntdddisk.h>
|
||||||
|
|
|
@ -9,9 +9,11 @@
|
||||||
|
|
||||||
#if !DBG
|
#if !DBG
|
||||||
|
|
||||||
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
// suppress empty compile unit warning
|
// suppress empty compile unit warning
|
||||||
#pragma warning (disable: 4206)
|
#pragma warning (disable: 4206)
|
||||||
#pragma message ("Debug feature is disabled.")
|
#pragma message ("Debug feature is disabled.")
|
||||||
|
#endif
|
||||||
|
|
||||||
#else // DBG
|
#else // DBG
|
||||||
|
|
||||||
|
@ -514,7 +516,7 @@ GetIoControlName(
|
||||||
CASE_RETURN_STR(IOCTL_DISK_GROW_PARTITION);
|
CASE_RETURN_STR(IOCTL_DISK_GROW_PARTITION);
|
||||||
CASE_RETURN_STR(IOCTL_DISK_GET_CACHE_INFORMATION);
|
CASE_RETURN_STR(IOCTL_DISK_GET_CACHE_INFORMATION);
|
||||||
CASE_RETURN_STR(IOCTL_DISK_SET_CACHE_INFORMATION);
|
CASE_RETURN_STR(IOCTL_DISK_SET_CACHE_INFORMATION);
|
||||||
#if (NTDDI_VERSION < NTDDI_WS03)
|
#if !defined(__REACTOS__) || (NTDDI_VERSION < NTDDI_WS03)
|
||||||
CASE_RETURN_STR(IOCTL_DISK_GET_WRITE_CACHE_STATE);
|
CASE_RETURN_STR(IOCTL_DISK_GET_WRITE_CACHE_STATE);
|
||||||
#else
|
#else
|
||||||
CASE_RETURN_STR(OBSOLETE_DISK_GET_WRITE_CACHE_STATE);
|
CASE_RETURN_STR(OBSOLETE_DISK_GET_WRITE_CACHE_STATE);
|
||||||
|
|
|
@ -284,7 +284,7 @@ VfdOpenImage (
|
||||||
#ifndef __REACTOS__
|
#ifndef __REACTOS__
|
||||||
&file_object,
|
&file_object,
|
||||||
#else
|
#else
|
||||||
(PVOID *)&file_object,
|
(PVOID *)&file_object,
|
||||||
#endif
|
#endif
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
so DO NOT define VFD_MOUNT_MANAGER macro
|
so DO NOT define VFD_MOUNT_MANAGER macro
|
||||||
unless you know exactly what you are doing...
|
unless you know exactly what you are doing...
|
||||||
*/
|
*/
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
// suppress empty compile unit warning
|
// suppress empty compile unit warning
|
||||||
#pragma warning (disable: 4206)
|
#pragma warning (disable: 4206)
|
||||||
#pragma message ("Mount Manager support feature is disabled.")
|
#pragma message ("Mount Manager support feature is disabled.")
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
so DO NOT define VFD_PNP macro
|
so DO NOT define VFD_PNP macro
|
||||||
unless you know exactly what you are doing...
|
unless you know exactly what you are doing...
|
||||||
*/
|
*/
|
||||||
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
// suppress empty compile unit warning
|
// suppress empty compile unit warning
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning (disable: 4206)
|
#pragma warning (disable: 4206)
|
||||||
#pragma message ("Plug and play support feature is disabled.")
|
#pragma message ("Plug and play support feature is disabled.")
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
// Used for IOCTL_VFD_OPEN_IMAGE and IOCTL_VFD_QUERY_IMAGE
|
// Used for IOCTL_VFD_OPEN_IMAGE and IOCTL_VFD_QUERY_IMAGE
|
||||||
//
|
//
|
||||||
#pragma pack (push,2)
|
#pragma pack (push,2)
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma warning (push)
|
#pragma warning (push)
|
||||||
#pragma warning (disable: 4200) // Zero sized struct member warning
|
#pragma warning (disable: 4200) // Zero sized struct member warning
|
||||||
#endif
|
#endif
|
||||||
|
@ -70,7 +70,7 @@ typedef struct _VFD_IMAGE_INFO {
|
||||||
CHAR FileName[0]; // variable length file name string
|
CHAR FileName[0]; // variable length file name string
|
||||||
} VFD_IMAGE_INFO, *PVFD_IMAGE_INFO;
|
} VFD_IMAGE_INFO, *PVFD_IMAGE_INFO;
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma warning (pop)
|
#pragma warning (pop)
|
||||||
#endif
|
#endif
|
||||||
#pragma pack (pop)
|
#pragma pack (pop)
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <dbt.h>
|
#include <dbt.h>
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma warning (push, 3)
|
#pragma warning (push, 3)
|
||||||
#endif
|
#endif
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <winioctl.h>
|
#include <winioctl.h>
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma warning (pop)
|
#pragma warning (pop)
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -14,11 +14,11 @@
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma warning(push,3)
|
#pragma warning(push,3)
|
||||||
#endif
|
#endif
|
||||||
#include <commdlg.h>
|
#include <commdlg.h>
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -404,7 +404,11 @@ void OnBrowse(
|
||||||
ofn.nMaxFile = sizeof(file);
|
ofn.nMaxFile = sizeof(file);
|
||||||
ofn.lpstrInitialDir = dir;
|
ofn.lpstrInitialDir = dir;
|
||||||
ofn.lpstrTitle = title ? title : FALLBACK_IMAGE_TITLE;
|
ofn.lpstrTitle = title ? title : FALLBACK_IMAGE_TITLE;
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
ofn.Flags = OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
||||||
|
#else
|
||||||
ofn.Flags = OFN_EXPLORER | OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
ofn.Flags = OFN_EXPLORER | OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
||||||
|
#endif
|
||||||
|
|
||||||
// show the open file dialog box
|
// show the open file dialog box
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,11 @@
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma warning(push,3)
|
#pragma warning(push,3)
|
||||||
#endif
|
#endif
|
||||||
#include <commdlg.h>
|
#include <commdlg.h>
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -195,7 +195,11 @@ void OnInit(
|
||||||
{
|
{
|
||||||
// Store parameters
|
// Store parameters
|
||||||
|
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
SetWindowLong(hDlg, GWL_USERDATA, (ULONG)pParam);
|
||||||
|
#else
|
||||||
SetWindowLongPtr(hDlg, GWLP_USERDATA, (ULONG_PTR)pParam);
|
SetWindowLongPtr(hDlg, GWLP_USERDATA, (ULONG_PTR)pParam);
|
||||||
|
#endif
|
||||||
|
|
||||||
// clear the target existence flag
|
// clear the target existence flag
|
||||||
|
|
||||||
|
@ -293,7 +297,11 @@ void OnTarget(
|
||||||
//
|
//
|
||||||
// get the current image info
|
// get the current image info
|
||||||
//
|
//
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
param = (PCSAVE_PARAM)GetWindowLong(hDlg, GWL_USERDATA);
|
||||||
|
#else
|
||||||
param = (PCSAVE_PARAM)GetWindowLongPtr(hDlg, GWLP_USERDATA);
|
param = (PCSAVE_PARAM)GetWindowLongPtr(hDlg, GWLP_USERDATA);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (_stricmp(param->ImageName, buf) == 0) {
|
if (_stricmp(param->ImageName, buf) == 0) {
|
||||||
|
|
||||||
|
@ -422,7 +430,11 @@ void OnBrowse(
|
||||||
ofn.lpstrInitialDir = dir;
|
ofn.lpstrInitialDir = dir;
|
||||||
ofn.lpstrTitle = title ? title : "Save Image";
|
ofn.lpstrTitle = title ? title : "Save Image";
|
||||||
ofn.lpstrFilter = "*.*\0*.*\0";
|
ofn.lpstrFilter = "*.*\0*.*\0";
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
ofn.Flags = OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
||||||
|
#else
|
||||||
ofn.Flags = OFN_EXPLORER | OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
ofn.Flags = OFN_EXPLORER | OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (GetSaveFileName(&ofn)) {
|
if (GetSaveFileName(&ofn)) {
|
||||||
SetDlgItemText(hDlg, IDC_TARGETFILE, file);
|
SetDlgItemText(hDlg, IDC_TARGETFILE, file);
|
||||||
|
@ -469,7 +481,11 @@ DWORD OnOK(
|
||||||
BOOL truncate;
|
BOOL truncate;
|
||||||
DWORD ret;
|
DWORD ret;
|
||||||
|
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
param = (PCSAVE_PARAM)GetWindowLong(hDlg, GWL_USERDATA);
|
||||||
|
#else
|
||||||
param = (PCSAVE_PARAM)GetWindowLongPtr(hDlg, GWLP_USERDATA);
|
param = (PCSAVE_PARAM)GetWindowLongPtr(hDlg, GWLP_USERDATA);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!param) {
|
if (!param) {
|
||||||
return ERROR_INVALID_FUNCTION;
|
return ERROR_INVALID_FUNCTION;
|
||||||
|
|
|
@ -41,8 +41,13 @@ static LRESULT CALLBACK ToolTipProc(
|
||||||
switch (uMsg) {
|
switch (uMsg) {
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
// Store Font handle
|
// Store Font handle
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
SetWindowLong(hWnd, GWL_USERDATA,
|
||||||
|
(LONG)((LPCREATESTRUCT)lParam)->lpCreateParams);
|
||||||
|
#else
|
||||||
SetWindowLongPtr(hWnd, GWLP_USERDATA,
|
SetWindowLongPtr(hWnd, GWLP_USERDATA,
|
||||||
(LONG_PTR)((LPCREATESTRUCT)lParam)->lpCreateParams);
|
(LONG_PTR)((LPCREATESTRUCT)lParam)->lpCreateParams);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_PAINT:
|
case WM_PAINT:
|
||||||
|
@ -56,7 +61,11 @@ static LRESULT CALLBACK ToolTipProc(
|
||||||
RECT rc;
|
RECT rc;
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
SelectObject(hDC, (HFONT)GetWindowLong(hWnd, GWL_USERDATA));
|
||||||
|
#else
|
||||||
SelectObject(hDC, (HFONT)GetWindowLongPtr(hWnd, GWLP_USERDATA));
|
SelectObject(hDC, (HFONT)GetWindowLongPtr(hWnd, GWLP_USERDATA));
|
||||||
|
#endif
|
||||||
|
|
||||||
SetTextColor(hDC, GetSysColor(COLOR_INFOTEXT));
|
SetTextColor(hDC, GetSysColor(COLOR_INFOTEXT));
|
||||||
SetBkMode(hDC, TRANSPARENT);
|
SetBkMode(hDC, TRANSPARENT);
|
||||||
|
@ -121,7 +130,11 @@ static LRESULT CALLBACK ToolTipProc(
|
||||||
|
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
// delete font
|
// delete font
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
DeleteObject((HFONT)GetWindowLong(hWnd, GWL_USERDATA));
|
||||||
|
#else
|
||||||
DeleteObject((HFONT)GetWindowLongPtr(hWnd, GWLP_USERDATA));
|
DeleteObject((HFONT)GetWindowLongPtr(hWnd, GWLP_USERDATA));
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,12 @@
|
||||||
;#ifndef _VFDMSG_H_
|
;#ifndef _VFDMSG_H_
|
||||||
;#define _VFDMSG_H_
|
;#define _VFDMSG_H_
|
||||||
;
|
;
|
||||||
|
;/*
|
||||||
|
; __REACTOS__:
|
||||||
|
; * Renamed file from vfdmsg.mc.
|
||||||
|
; - Removed Japanese language.
|
||||||
|
; + Added a second blank line between some entries.
|
||||||
|
;*/
|
||||||
|
|
||||||
MessageIdTypedef=DWORD
|
MessageIdTypedef=DWORD
|
||||||
LanguageNames=(English=0x409:msg0409)
|
LanguageNames=(English=0x409:msg0409)
|
||||||
|
|
|
@ -70,7 +70,7 @@ public:
|
||||||
#ifndef __REACTOS__
|
#ifndef __REACTOS__
|
||||||
UINT idCmd,
|
UINT idCmd,
|
||||||
#else
|
#else
|
||||||
UINT_PTR idCmd,
|
UINT_PTR idCmd,
|
||||||
#endif
|
#endif
|
||||||
UINT uFlags,
|
UINT uFlags,
|
||||||
UINT *reserved,
|
UINT *reserved,
|
||||||
|
|
|
@ -270,7 +270,7 @@ STDMETHODIMP CVfdShExt::GetCommandString(
|
||||||
#ifndef __REACTOS__
|
#ifndef __REACTOS__
|
||||||
UINT idCmd,
|
UINT idCmd,
|
||||||
#else
|
#else
|
||||||
UINT_PTR idCmd,
|
UINT_PTR idCmd,
|
||||||
#endif
|
#endif
|
||||||
UINT uFlags,
|
UINT uFlags,
|
||||||
UINT *reserved,
|
UINT *reserved,
|
||||||
|
@ -350,6 +350,7 @@ STDMETHODIMP CVfdShExt::InvokeCommand(
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
if (!unicode && HIWORD(lpcmi->lpVerb)) {
|
if (!unicode && HIWORD(lpcmi->lpVerb)) {
|
||||||
|
|
||||||
VFDTRACE(0, ("ANSI: %s\n", lpcmi->lpVerb));
|
VFDTRACE(0, ("ANSI: %s\n", lpcmi->lpVerb));
|
||||||
|
|
|
@ -22,14 +22,14 @@
|
||||||
// Initialize the GUID instance
|
// Initialize the GUID instance
|
||||||
//=====================================
|
//=====================================
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma data_seg(".text")
|
#pragma data_seg(".text")
|
||||||
#endif
|
#endif
|
||||||
#define INITGUID
|
#define INITGUID
|
||||||
#include <initguid.h>
|
#include <initguid.h>
|
||||||
#include <shlguid.h>
|
#include <shlguid.h>
|
||||||
#include "vfdshguid.h"
|
#include "vfdshguid.h"
|
||||||
#ifdef _MSC_VER
|
#if !defined(__REACTOS__) || defined(_MSC_VER)
|
||||||
#pragma data_seg()
|
#pragma data_seg()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue