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