Reactos

[VFD] Properly mark ReactOS's diffs

Addendum to 25c7e1a (0.4.7-dev-1106) and follow-ups.

authored by

Serge Gautherie and committed by
Stanislav Motylkov
3ff08b64 1abac8f6

+69 -20
+7
modules/rosapps/applications/cmdutils/vfdcmd/vfdmsg.mc
··· 11 11 ;#ifndef _VFDMSG_H_ 12 12 ;#define _VFDMSG_H_ 13 13 ; 14 + ;/* 15 + ; __REACTOS__: 16 + ; - Removed Japanese language. 17 + ; + Added a second blank line between some entries. 18 + ;*/ 14 19 15 20 MessageIdTypedef=DWORD 16 21 LanguageNames=(English=0x409:MSG0409) ··· 1161 1166 . 1162 1167 1163 1168 1169 + ;// __REACTOS__: s/read only/read-only/. 1164 1170 MessageId= 1165 1171 SymbolicName=MSG_HELP_OPEN 1166 1172 Language=English ··· 1360 1366 . 1361 1367 1362 1368 1369 + ;// __REACTOS__: s/read only/read-only/. 1363 1370 MessageId= 1364 1371 SymbolicName=MSG_HELP_PROTECT 1365 1372 Language=English
+4 -4
modules/rosapps/drivers/vfd/imports.h
··· 27 27 extern "C" { 28 28 #endif // __cplusplus 29 29 30 - #ifdef _MSC_VER 30 + #if !defined(__REACTOS__) || defined(_MSC_VER) 31 31 #pragma warning(push,3) 32 32 #endif 33 33 #include <ntddk.h> 34 34 #include <ntdddisk.h> 35 35 #include <ntverp.h> 36 - #ifdef _MSC_VER 36 + #if !defined(__REACTOS__) || defined(_MSC_VER) 37 37 #pragma warning(pop) 38 - #endif 39 38 40 - #ifdef _MSC_VER 41 39 // disable unwanted (and trivial) warnings : 42 40 // 4054 - type cast from a function pointer to a data pointer 43 41 // 4201 - anonymous structure ··· 178 176 } MOUNTMGR_MOUNT_POINTS, *PMOUNTMGR_MOUNT_POINTS; 179 177 180 178 #endif // (VER_PRODUCTBUILD < 2195) 179 + 180 + // __REACTOS__: NTAPI added on some functions in this file, vfddrv.h and some *.c. 181 181 182 182 #if (VER_PRODUCTBUILD < 2600) 183 183 //
+3 -1
modules/rosapps/drivers/vfd/vfddbg.c
··· 9 9 10 10 #if !DBG 11 11 12 + #if !defined(__REACTOS__) || defined(_MSC_VER) 12 13 // suppress empty compile unit warning 13 14 #pragma warning (disable: 4206) 14 15 #pragma message ("Debug feature is disabled.") 16 + #endif 15 17 16 18 #else // DBG 17 19 ··· 514 516 CASE_RETURN_STR(IOCTL_DISK_GROW_PARTITION); 515 517 CASE_RETURN_STR(IOCTL_DISK_GET_CACHE_INFORMATION); 516 518 CASE_RETURN_STR(IOCTL_DISK_SET_CACHE_INFORMATION); 517 - #if (NTDDI_VERSION < NTDDI_WS03) 519 + #if !defined(__REACTOS__) || (NTDDI_VERSION < NTDDI_WS03) 518 520 CASE_RETURN_STR(IOCTL_DISK_GET_WRITE_CACHE_STATE); 519 521 #else 520 522 CASE_RETURN_STR(OBSOLETE_DISK_GET_WRITE_CACHE_STATE);
+1 -1
modules/rosapps/drivers/vfd/vfdimg.c
··· 284 284 #ifndef __REACTOS__ 285 285 &file_object, 286 286 #else 287 - (PVOID *)&file_object, 287 + (PVOID *)&file_object, 288 288 #endif 289 289 NULL); 290 290
+1 -1
modules/rosapps/drivers/vfd/vfdmnt.c
··· 13 13 so DO NOT define VFD_MOUNT_MANAGER macro 14 14 unless you know exactly what you are doing... 15 15 */ 16 - #ifdef _MSC_VER 16 + #if !defined(__REACTOS__) || defined(_MSC_VER) 17 17 // suppress empty compile unit warning 18 18 #pragma warning (disable: 4206) 19 19 #pragma message ("Mount Manager support feature is disabled.")
+1 -1
modules/rosapps/drivers/vfd/vfdpnp.c
··· 13 13 so DO NOT define VFD_PNP macro 14 14 unless you know exactly what you are doing... 15 15 */ 16 + #if !defined(__REACTOS__) || defined(_MSC_VER) 16 17 // suppress empty compile unit warning 17 - #ifdef _MSC_VER 18 18 #pragma warning (disable: 4206) 19 19 #pragma message ("Plug and play support feature is disabled.") 20 20 #endif
+2 -2
modules/rosapps/include/vfd/vfdio.h
··· 55 55 // Used for IOCTL_VFD_OPEN_IMAGE and IOCTL_VFD_QUERY_IMAGE 56 56 // 57 57 #pragma pack (push,2) 58 - #ifdef _MSC_VER 58 + #if !defined(__REACTOS__) || defined(_MSC_VER) 59 59 #pragma warning (push) 60 60 #pragma warning (disable: 4200) // Zero sized struct member warning 61 61 #endif ··· 70 70 CHAR FileName[0]; // variable length file name string 71 71 } VFD_IMAGE_INFO, *PVFD_IMAGE_INFO; 72 72 73 - #ifdef _MSC_VER 73 + #if !defined(__REACTOS__) || defined(_MSC_VER) 74 74 #pragma warning (pop) 75 75 #endif 76 76 #pragma pack (pop)
+2 -2
modules/rosapps/lib/vfdlib/vfdctl.c
··· 15 15 #define WIN32_LEAN_AND_MEAN 16 16 #include <windows.h> 17 17 #include <dbt.h> 18 - #ifdef _MSC_VER 18 + #if !defined(__REACTOS__) || defined(_MSC_VER) 19 19 #pragma warning (push, 3) 20 20 #endif 21 21 #include <shlobj.h> 22 22 #include <winioctl.h> 23 - #ifdef _MSC_VER 23 + #if !defined(__REACTOS__) || defined(_MSC_VER) 24 24 #pragma warning (pop) 25 25 #endif 26 26 #include <stdio.h>
+6 -2
modules/rosapps/lib/vfdlib/vfdguiopen.c
··· 14 14 15 15 #define WIN32_LEAN_AND_MEAN 16 16 #include <windows.h> 17 - #ifdef _MSC_VER 17 + #if !defined(__REACTOS__) || defined(_MSC_VER) 18 18 #pragma warning(push,3) 19 19 #endif 20 20 #include <commdlg.h> 21 - #ifdef _MSC_VER 21 + #if !defined(__REACTOS__) || defined(_MSC_VER) 22 22 #pragma warning(pop) 23 23 #endif 24 24 ··· 404 404 ofn.nMaxFile = sizeof(file); 405 405 ofn.lpstrInitialDir = dir; 406 406 ofn.lpstrTitle = title ? title : FALLBACK_IMAGE_TITLE; 407 + #ifndef __REACTOS__ 408 + ofn.Flags = OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST; 409 + #else 407 410 ofn.Flags = OFN_EXPLORER | OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST; 411 + #endif 408 412 409 413 // show the open file dialog box 410 414
+18 -2
modules/rosapps/lib/vfdlib/vfdguisave.c
··· 14 14 15 15 #define WIN32_LEAN_AND_MEAN 16 16 #include <windows.h> 17 - #ifdef _MSC_VER 17 + #if !defined(__REACTOS__) || defined(_MSC_VER) 18 18 #pragma warning(push,3) 19 19 #endif 20 20 #include <commdlg.h> 21 - #ifdef _MSC_VER 21 + #if !defined(__REACTOS__) || defined(_MSC_VER) 22 22 #pragma warning(pop) 23 23 #endif 24 24 ··· 195 195 { 196 196 // Store parameters 197 197 198 + #ifndef __REACTOS__ 199 + SetWindowLong(hDlg, GWL_USERDATA, (ULONG)pParam); 200 + #else 198 201 SetWindowLongPtr(hDlg, GWLP_USERDATA, (ULONG_PTR)pParam); 202 + #endif 199 203 200 204 // clear the target existence flag 201 205 ··· 293 297 // 294 298 // get the current image info 295 299 // 300 + #ifndef __REACTOS__ 301 + param = (PCSAVE_PARAM)GetWindowLong(hDlg, GWL_USERDATA); 302 + #else 296 303 param = (PCSAVE_PARAM)GetWindowLongPtr(hDlg, GWLP_USERDATA); 304 + #endif 297 305 298 306 if (_stricmp(param->ImageName, buf) == 0) { 299 307 ··· 422 430 ofn.lpstrInitialDir = dir; 423 431 ofn.lpstrTitle = title ? title : "Save Image"; 424 432 ofn.lpstrFilter = "*.*\0*.*\0"; 433 + #ifndef __REACTOS__ 434 + ofn.Flags = OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST; 435 + #else 425 436 ofn.Flags = OFN_EXPLORER | OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST; 437 + #endif 426 438 427 439 if (GetSaveFileName(&ofn)) { 428 440 SetDlgItemText(hDlg, IDC_TARGETFILE, file); ··· 469 481 BOOL truncate; 470 482 DWORD ret; 471 483 484 + #ifndef __REACTOS__ 485 + param = (PCSAVE_PARAM)GetWindowLong(hDlg, GWL_USERDATA); 486 + #else 472 487 param = (PCSAVE_PARAM)GetWindowLongPtr(hDlg, GWLP_USERDATA); 488 + #endif 473 489 474 490 if (!param) { 475 491 return ERROR_INVALID_FUNCTION;
+13
modules/rosapps/lib/vfdlib/vfdguitip.c
··· 41 41 switch (uMsg) { 42 42 case WM_CREATE: 43 43 // Store Font handle 44 + #ifndef __REACTOS__ 45 + SetWindowLong(hWnd, GWL_USERDATA, 46 + (LONG)((LPCREATESTRUCT)lParam)->lpCreateParams); 47 + #else 44 48 SetWindowLongPtr(hWnd, GWLP_USERDATA, 45 49 (LONG_PTR)((LPCREATESTRUCT)lParam)->lpCreateParams); 50 + #endif 46 51 return 0; 47 52 48 53 case WM_PAINT: ··· 56 61 RECT rc; 57 62 58 63 64 + #ifndef __REACTOS__ 65 + SelectObject(hDC, (HFONT)GetWindowLong(hWnd, GWL_USERDATA)); 66 + #else 59 67 SelectObject(hDC, (HFONT)GetWindowLongPtr(hWnd, GWLP_USERDATA)); 68 + #endif 60 69 61 70 SetTextColor(hDC, GetSysColor(COLOR_INFOTEXT)); 62 71 SetBkMode(hDC, TRANSPARENT); ··· 121 130 122 131 case WM_DESTROY: 123 132 // delete font 133 + #ifndef __REACTOS__ 134 + DeleteObject((HFONT)GetWindowLong(hWnd, GWL_USERDATA)); 135 + #else 124 136 DeleteObject((HFONT)GetWindowLongPtr(hWnd, GWLP_USERDATA)); 137 + #endif 125 138 return 0; 126 139 } 127 140
+6
modules/rosapps/lib/vfdlib/vfdmsg_lib.mc
··· 11 11 ;#ifndef _VFDMSG_H_ 12 12 ;#define _VFDMSG_H_ 13 13 ; 14 + ;/* 15 + ; __REACTOS__: 16 + ; * Renamed file from vfdmsg.mc. 17 + ; - Removed Japanese language. 18 + ; + Added a second blank line between some entries. 19 + ;*/ 14 20 15 21 MessageIdTypedef=DWORD 16 22 LanguageNames=(English=0x409:msg0409)
+1 -1
modules/rosapps/lib/vfdlib/vfdshext.h
··· 70 70 #ifndef __REACTOS__ 71 71 UINT idCmd, 72 72 #else 73 - UINT_PTR idCmd, 73 + UINT_PTR idCmd, 74 74 #endif 75 75 UINT uFlags, 76 76 UINT *reserved,
+2 -1
modules/rosapps/lib/vfdlib/vfdshmenu.cpp
··· 270 270 #ifndef __REACTOS__ 271 271 UINT idCmd, 272 272 #else 273 - UINT_PTR idCmd, 273 + UINT_PTR idCmd, 274 274 #endif 275 275 UINT uFlags, 276 276 UINT *reserved, ··· 349 349 unicode = TRUE; 350 350 } 351 351 #endif 352 + 352 353 353 354 if (!unicode && HIWORD(lpcmi->lpVerb)) { 354 355
+2 -2
modules/rosapps/lib/vfdlib/vfdshutil.cpp
··· 22 22 // Initialize the GUID instance 23 23 //===================================== 24 24 25 - #ifdef _MSC_VER 25 + #if !defined(__REACTOS__) || defined(_MSC_VER) 26 26 #pragma data_seg(".text") 27 27 #endif 28 28 #define INITGUID 29 29 #include <initguid.h> 30 30 #include <shlguid.h> 31 31 #include "vfdshguid.h" 32 - #ifdef _MSC_VER 32 + #if !defined(__REACTOS__) || defined(_MSC_VER) 33 33 #pragma data_seg() 34 34 #endif 35 35