Skip to content

Commit 3f24fbb

Browse files
authored
Merge branch 'reactos:master' into uxtheme-nt6plus-apis
2 parents 1720174 + cf2cbe6 commit 3f24fbb

3,206 files changed

Lines changed: 311737 additions & 70244 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- dllver: 0x600
1616
config: Release
1717
fail-fast: false
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-22.04
1919
steps:
2020
- name: Get RosBE build specifics
2121
id: get_rosbe_spec
@@ -165,6 +165,7 @@ jobs:
165165
uses: ilammy/msvc-dev-cmd@v1
166166
with:
167167
arch: amd64_arm
168+
sdk: 10.0.22621.0 # Windows SDK 10.0.26100.0 dropped support for 32-bit ARM
168169
toolset: ${{matrix.toolset}}
169170
- name: Activate VS cmd (arm64)
170171
if: ${{ matrix.arch == 'arm64' }}

CMakeLists.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ if(NOT CMAKE_CROSSCOMPILING)
140140
add_definitions(/D_X86_ /D__i386__ /DWIN32 /D_WINDOWS)
141141
elseif(ARCH STREQUAL "amd64")
142142
add_definitions(-D_AMD64_ -D__x86_64__ /DWIN32 -D_WINDOWS)
143+
elseif(ARCH STREQUAL "arm")
144+
add_definitions(-D__arm__)
145+
elseif(ARCH STREQUAL "arm64")
146+
add_definitions(-D__aarch64__)
143147
endif()
144148
if(MSVC_VERSION GREATER 1699)
145149
add_definitions(/D_ALLOW_KEYWORD_MACROS)
@@ -233,6 +237,8 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
233237
-D_WIN32_WINDOWS=0x502
234238
-D_SETUPAPI_VER=0x502
235239
-DMINGW_HAS_SECURE_API=1
240+
-DD3D_UMD_INTERFACE_VERSION=0x000C # Vista
241+
-DDXGKDDI_INTERFACE_VERSION=0x1052 # Vista
236242
-DDLL_EXPORT_VERSION=${DLL_EXPORT_VERSION})
237243

238244
# Arch Options
@@ -250,7 +256,7 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
250256
elseif(ARCH STREQUAL "amd64")
251257
# clang-cl defines this one for itself
252258
if (NOT (MSVC AND CMAKE_C_COMPILER_ID STREQUAL "Clang"))
253-
add_compile_definitions(_M_AMD64)
259+
add_compile_definitions(_M_AMD64 _M_X64)
254260
endif()
255261
add_definitions(-D_AMD64_ -D__x86_64__ -D_WIN64)
256262
elseif(ARCH STREQUAL "arm")
@@ -310,17 +316,20 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
310316
sdk/include
311317
sdk/include/psdk
312318
sdk/include/dxsdk
319+
sdk/include/winrt
313320
${REACTOS_BINARY_DIR}/sdk/include
314321
${REACTOS_BINARY_DIR}/sdk/include/psdk
315322
${REACTOS_BINARY_DIR}/sdk/include/dxsdk
316323
${REACTOS_BINARY_DIR}/sdk/include/ddk
317324
${REACTOS_BINARY_DIR}/sdk/include/reactos
318325
${REACTOS_BINARY_DIR}/sdk/include/reactos/mc
319326
sdk/include/crt
327+
sdk/include/vcruntime
320328
sdk/include/ddk
321329
sdk/include/ndk
322330
sdk/include/reactos
323-
sdk/include/reactos/libs)
331+
sdk/include/reactos/libs
332+
sdk/lib/pseh/include)
324333

325334
if(ARCH STREQUAL "arm")
326335
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/arm)
@@ -337,7 +346,7 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
337346
add_subdirectory(sdk/include/asm)
338347

339348
if(ARCH MATCHES "64$")
340-
include(sdk/cmake/baseaddress64.cmake)
349+
include(sdk/cmake/baseaddress64.cmake)
341350
elseif(NO_ROSSYM)
342351
include(sdk/cmake/baseaddress_dwarf.cmake)
343352
elseif(MSVC)

base/applications/atactl/helper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ typedef struct _SENDCMDINPARAMS {
3535
ULONG dwReserved[4];
3636
UCHAR bBuffer[1];
3737
} SENDCMDINPARAMS, *PSENDCMDINPARAMS, *LPSENDCMDINPARAMS;
38-
#include <poppack.h>
38+
#include <poppack.h>

base/applications/calc/resource.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
2929

3030
/* Icons */
31-
IDI_CALC ICON DISCARDABLE "res/calc.ico"
31+
IDI_CALC ICON "res/calc.ico"
3232

3333
/* Manifest */
3434
#include <reactos/manifest_exe.rc>

base/applications/calc/winmain.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,10 +1015,16 @@ static void handle_copy_command(HWND hWnd)
10151015
TCHAR display[MAX_CALC_SIZE];
10161016
UINT n;
10171017

1018+
// Read current text from output display
10181019
n = GetDlgItemText(hWnd, IDC_TEXT_OUTPUT, display, SIZEOF(display));
10191020

1020-
if (calc.base == IDC_RADIO_DEC && _tcschr(calc.buffer, _T('.')) == NULL)
1021-
display[n - calc.sDecimal_len] = _T('\0');
1021+
// Check if result is a true number
1022+
if (!calc.is_nan)
1023+
{
1024+
// Remove trailing decimal point if no decimal digits exist
1025+
if (calc.base == IDC_RADIO_DEC && _tcschr(calc.buffer, _T('.')) == NULL)
1026+
display[n - calc.sDecimal_len] = _T('\0');
1027+
}
10221028

10231029
CopyMemToClipboard(display);
10241030
}

base/applications/charmap_new/Cell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ CCell::SetCellCoordinates(
9191
)
9292
{
9393
m_CellCoordinates = Coordinates;
94-
}
94+
}

base/applications/charmap_new/GridView.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,4 +519,4 @@ CGridView::SetCellFocus(
519519
// Set the new active cell and give it focus
520520
m_ActiveCell = NewActiveCell;
521521
m_ActiveCell->SetFocus(true);
522-
}
522+
}

base/applications/charmap_new/MainWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ class CCharMapWindow
8181

8282
bool ChangeMapFont(
8383
);
84-
};
84+
};

base/applications/charmap_new/precomp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@
5151

5252
//WINE_DEFAULT_DEBUG_CHANNEL(charmap);
5353

54-
#endif
54+
#endif

base/applications/clipbrd/winutils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ void SetDIBitsToDeviceFromClipboard(UINT uFormat, PAINTSTRUCT ps, SCROLLSTATE st
257257
*
258258
* FIXME: investigate!!
259259
* ANSWER: this is a Windows bug; part of the answer is there:
260-
* https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/ac7ab3b5-8609-4478-b86a-976dab44c271/bug-clipboard-format-conversions-cfdib-cfdibv5-cfdib
260+
* https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/ac7ab3b5-8609-4478-b86a-976dab44c271/bug-clipboard-format-conversions-cfdib-cfdibv5-cfdib (DEAD_LINK)
261261
* May be related:
262-
* https://blog.talosintelligence.com/2015/10/dangerous-clipboard.html
262+
* https://blog.talosintelligence.com/dangerous-clipboard/
263263
*/
264264
#if 0
265265
if ((lpInfoHeader->biSize == sizeof(BITMAPINFOHEADER)) &&

0 commit comments

Comments
 (0)