Skip to content

Commit 0764523

Browse files
committed
Merge branch 'master' of https://github.com/reactos/reactos into usbvideo_bringup
2 parents 641d277 + 6c532e7 commit 0764523

File tree

870 files changed

+90689
-66621
lines changed

Some content is hidden

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

870 files changed

+90689
-66621
lines changed

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Win32SS:
4848
- changed-files:
4949
- any-glob-to-any-file:
5050
- base/ctf/**
51+
- base/system/conime/**
5152
- win32ss/user/imm32/**
5253
- win32ss/user/ntuser/ime.c
5354
- win32ss/user/user32/misc/imm.c

base/applications/cmdutils/hostname/hostname.rc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
3939
#ifdef LANGUAGE_RU_RU
4040
#include "lang/ru-RU.rc"
4141
#endif
42+
#ifdef LANGUAGE_SK_SK
43+
#include "lang/sk-SK.rc"
44+
#endif
4245
#ifdef LANGUAGE_SQ_AL
4346
#include "lang/sq-AL.rc"
4447
#endif
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* PROJECT: ReactOS Hostname Command
3+
* LICENSE: LGPL-2.1+ (https://spdx.org/licenses/LGPL-2.1+)
4+
* PURPOSE: Slovak resource file
5+
* TRANSLATOR: Copyright 2026 Václav Zouzalík (Venca24) <vaclav.zouzalik@seznam.cz>
6+
*/
7+
8+
LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT
9+
10+
STRINGTABLE
11+
BEGIN
12+
IDS_USAGE "Vypíše súčasný názov hostiteľa.\n\nhostname"
13+
IDS_NOSET "hostname -s nie je podporovaný."
14+
IDS_ERROR "Chyba Win32"
15+
END

base/applications/kbswitch/kbswitch.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,14 @@
1111
#include <tchar.h>
1212
#include <strsafe.h>
1313
#include <ime/indicml.h> /* INDICATOR_CLASS, INDICM_... */
14+
#include <cjkcode.h> /* LANGID_... */
1415

1516
#include "resource.h"
1617
#include "indicdll/resource.h"
1718

1819
#define CCH_LAYOUT_ID 8 // Character Count of a layout ID like "00000409"
1920
#define CCH_ULONG_DEC 10 // Maximum Character Count of a ULONG in decimal
2021

21-
// Far East Language IDs
22-
#define LANGID_CHINESE_SIMPLIFIED MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED)
23-
#define LANGID_CHINESE_TRADITIONAL MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL)
24-
#define LANGID_JAPANESE MAKELANGID(LANG_JAPANESE, SUBLANG_DEFAULT)
25-
#define LANGID_KOREAN MAKELANGID(LANG_KOREAN, SUBLANG_DEFAULT)
26-
2722
#define WM_LANG_CHANGED (WM_USER + 10200)
2823
#define WM_WINDOW_ACTIVATE (WM_USER + 10300)
2924

base/applications/mspaint/history.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ ImageModel::ImageModel()
3838
, m_undoSteps(0)
3939
, m_redoSteps(0)
4040
{
41-
ZeroMemory(m_historyItems, sizeof(m_historyItems));
42-
4341
m_hbmMaster = CreateColorDIB(1, 1, RGB(255, 255, 255));
4442
m_hbmOld = ::SelectObject(m_hDrawingDC, m_hbmMaster);
4543

base/applications/mspaint/history.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
struct IMAGE_PART
1414
{
1515
CRect m_rcPart;
16-
HBITMAP m_hbmImage;
17-
BOOL m_bPartial;
16+
HBITMAP m_hbmImage = NULL;
17+
BOOL m_bPartial = FALSE;
1818

1919
void clear();
2020
};

base/applications/network/ftp/cmds.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,12 +1677,12 @@ int globulize(const char **cpp)
16771677
return (0);
16781678
}
16791679
if (globbed) {
1680-
*cpp = *globbed++;
1680+
*cpp = *globbed;
16811681
/* don't waste too much memory */
1682-
if (*globbed) {
1683-
blkfree(globbed);
1684-
free((char *)globbed);
1682+
if (globbed[1]) {
1683+
blkfree(&globbed[1]);
16851684
}
1685+
free(globbed);
16861686
}
16871687
return (1);
16881688
}

base/applications/network/ipconfig/ipconfig.c

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,8 +1244,10 @@ SetClassId(
12441244
ULONG ret = 0;
12451245
WCHAR szFriendlyName[MAX_PATH];
12461246
WCHAR szKeyName[256];
1247+
WCHAR szUnicodeAdapterName[MAX_ADAPTER_NAME_LENGTH + 4];
12471248
MIB_IFROW mibEntry;
12481249
HKEY hKey;
1250+
DHCP_PNP_EVENT PnpEvent;
12491251

12501252
ConResPrintf(StdOut, IDS_HEADER);
12511253

@@ -1313,8 +1315,31 @@ SetClassId(
13131315
if (pszClassId == NULL)
13141316
pszClassId = L"";
13151317

1316-
RegSetValueExW(hKey, L"DhcpClassId", 0, REG_SZ, (LPBYTE)pszClassId, (wcslen(pszClassId) + 1) * sizeof(WCHAR));
1318+
ret = RegSetValueExW(hKey, L"DhcpClassId", 0, REG_SZ, (LPBYTE)pszClassId, (wcslen(pszClassId) + 1) * sizeof(WCHAR));
13171319
RegCloseKey(hKey);
1320+
if (ret != ERROR_SUCCESS)
1321+
{
1322+
ConResPrintf(StdOut, IDS_DHCPSETIDERROR, szFriendlyName);
1323+
DoFormatMessage(ret);
1324+
goto done;
1325+
}
1326+
1327+
mbstowcs(szUnicodeAdapterName, pFoundAdapter->AdapterName, strlen(pFoundAdapter->AdapterName) + 1);
1328+
1329+
ZeroMemory(&PnpEvent, sizeof(PnpEvent));
1330+
PnpEvent.Unknown5 = 1;
1331+
1332+
ret = DhcpHandlePnPEvent(0,
1333+
1,
1334+
szUnicodeAdapterName,
1335+
&PnpEvent,
1336+
0);
1337+
if (ret != ERROR_SUCCESS)
1338+
{
1339+
ConResPrintf(StdOut, IDS_DHCPSETIDERROR, szFriendlyName);
1340+
DoFormatMessage(ret);
1341+
goto done;
1342+
}
13181343

13191344
ConResPrintf(StdOut, IDS_DHCPSETIDSUCCESS, szFriendlyName);
13201345
}

base/applications/network/nslookup/utility.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
#include "nslookup.h"
10+
#include <assert.h>
1011

1112
BOOL SendRequest( PCHAR pInBuffer,
1213
ULONG InBufferLength,
@@ -252,6 +253,8 @@ void ReverseIP( PCHAR pIP, PCHAR pReturn )
252253
int j;
253254
int k = 0;
254255

256+
assert(pReturn != pIP);
257+
255258
j = strlen( pIP ) - 1;
256259
i = j;
257260

@@ -261,7 +264,8 @@ void ReverseIP( PCHAR pIP, PCHAR pReturn )
261264
/* A */
262265
for( ; i > 0; i -= 1 ) if( '.' == pIP[i] ) break;
263266

264-
strncpy( &pReturn[k], &pIP[i + 1], (j - i) );
267+
if (j != i)
268+
strncpy( &pReturn[k], &pIP[i + 1], (j - i) );
265269
k += (j - i);
266270

267271
pReturn[k] = '.';
@@ -273,7 +277,8 @@ void ReverseIP( PCHAR pIP, PCHAR pReturn )
273277
/* B */
274278
for( ; i > 0; i -= 1 ) if( '.' == pIP[i] ) break;
275279

276-
strncpy( &pReturn[k], &pIP[i + 1], (j - i) );
280+
if (j != i)
281+
strncpy( &pReturn[k], &pIP[i + 1], (j - i) );
277282
k += (j - i);
278283

279284
pReturn[k] = '.';
@@ -285,7 +290,8 @@ void ReverseIP( PCHAR pIP, PCHAR pReturn )
285290
/* C */
286291
for( ; i > 0; i -= 1 ) if( '.' == pIP[i] ) break;
287292

288-
strncpy( &pReturn[k], &pIP[i + 1], (j - i) );
293+
if (j != i)
294+
strncpy( &pReturn[k], &pIP[i + 1], (j - i) );
289295
k += (j - i);
290296

291297
pReturn[k] = '.';
Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/*
2-
* FILE: base/applications/network/ping/lang/cs-CZ.rc
3-
* PURPOSE: Czech translations for ReactOS Ping Command
4-
* TRANSLATORS: Radek Liska (Black_Fox) <radekliska at gmail dot com>
2+
* PROJECT: ReactOS Ping Command
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: Czech resource file
5+
* TRANSLATORS: Copyright 2011 Radek Liška (Black_Fox) <radekliska@gmail.com>
6+
* Copyright 2026 Václav Zouzalík (Venca24) <vaclav.zouzalik@seznam.cz>
57
*/
68

79
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
@@ -10,50 +12,49 @@ STRINGTABLE
1012
BEGIN
1113
IDS_USAGE "\n\
1214
Použití: ping [-t] [-a] [-n počet] [-l velikost] [-f] [-i TTL] [-v TOS]\n\
13-
[-w timeout] [-4] [-6] target\n\
15+
[-w timeout] [-4] [-6] cíl\n\
1416
\n\
15-
Options:\n\
16-
-t Ping the specified host until stopped.\n\
17-
To see statistics and continue - type Control-Break;\n\
18-
To stop - type Control-C.\n\
19-
-a Resolve addresses to hostnames.\n\
20-
-n počet Počet požadavků o ozvěnu, které budou zaslány.\n\
17+
Volby:\n\
18+
-t Posílá ping na určeného hostitele, dokud není zastaven.\n\
19+
Pro výpis statistiky a pokračování - stiskněte Ctrl-Break;\n\
20+
Pro zastavení - stiskněte Ctrl-C.\n\
21+
-a Převede adresy na názvy hostitelů.\n\
22+
-n počet Počet požadavků na ozvěnu, které budou zaslány.\n\
2123
-l velikost Velikost vyrovnávací paměti.\n\
22-
-f Set Don't Fragment flag in packet (IPv4-only).\n\
24+
-f Nastaví v paketech příznak Don't Fragment (jen IPv4).\n\
2325
-i TTL Time To Live.\n\
24-
-v TOS Type Of Service (IPv4-only. This setting has been deprecated\n\
25-
and has no effect on the type of service field in the IP\n\
26-
Header).\n\
26+
-v TOS Type Of Service (Jen IPv4. Toto nastavení je zastaralé\n\
27+
a nemá žádný vliv na pole typu služby v IP hlavičce).\n\
2728
-w timeout Doba v milisekundách, po kterou se bude čekat na odpověď.\n\
28-
-4 Force using IPv4.\n\
29-
-6 Force using IPv6.\n\
29+
-4 Vynutí použití IPv4.\n\
30+
-6 Vynutí použití IPv6.\n\
3031
\n"
3132

32-
IDS_CTRL_BREAK "Control-Break\n"
33-
IDS_CTRL_C "Control-C\n"
33+
IDS_CTRL_BREAK "Ctrl-Break\n"
34+
IDS_CTRL_C "Ctrl-C\n"
3435
IDS_NO_RESOURCES "Není k dispozici dostatek volných zdrojů.\n"
35-
IDS_MISSING_ADDRESS "IP address must be specified.\n"
36-
IDS_MISSING_VALUE "Value must be supplied for option %s.\n"
36+
IDS_MISSING_ADDRESS "IP adresa musí být uvedena.\n"
37+
IDS_MISSING_VALUE "Musí být zadána hodnota pro volbu %s.\n"
3738
IDS_BAD_OPTION "Nesprávná volba %s.\n"
3839
IDS_BAD_PARAMETER "Nesprávný parametr %s.\n"
3940
IDS_BAD_VALUE "Nesprávná hodnota volby %s, platný rozsah je od %u do %u.\n"
40-
IDS_WRONG_FAMILY "The option %s is only supported for %s.\n"
41-
IDS_UNKNOWN_HOST "Ping could not find host %s. Please check the name and try again.\n"
42-
IDS_PINGING_ADDRESS "\nPinging %s "
43-
IDS_PINGING_HOSTNAME "\nPinging %s [%s] "
44-
IDS_SOURCE_ADDRESS "from %s %s"
45-
IDS_PING_SIZE "with %lu bytes of data:\n\n"
41+
IDS_WRONG_FAMILY "Volba %s je podporována jen pro %s.\n"
42+
IDS_UNKNOWN_HOST "Ping nenašel hostitele %s. Zkontrolujte prosím jeho název a zkuste to znovu.\n"
43+
IDS_PINGING_ADDRESS "\nPosílám ping na %s "
44+
IDS_PINGING_HOSTNAME "\nPosílám ping na %s [%s] "
45+
IDS_SOURCE_ADDRESS "z %s %s"
46+
IDS_PING_SIZE "s %lu bajty dat:\n\n"
4647
IDS_REPLY_FROM "Odpověď od %s: "
4748
IDS_REPLY_BYTES "bajtů=%d "
4849
IDS_REPLY_TIME_MS "čas=%lums "
4950
IDS_REPLY_TIME_0MS "čas<1ms "
5051
IDS_REPLY_TTL "TTL=%d\n"
51-
IDS_REPLY_STATUS "Echo reply returned %lu.\n"
52-
IDS_DEST_HOST_UNREACHABLE "Destination host unreachable.\n"
53-
IDS_DEST_NET_UNREACHABLE "Destination network unreachable.\n"
52+
IDS_REPLY_STATUS "Vrátila se odpověď na echo %lu.\n"
53+
IDS_DEST_HOST_UNREACHABLE "Cílový hostitel není dostupný.\n"
54+
IDS_DEST_NET_UNREACHABLE "Cílová síť není dostupná.\n"
5455
IDS_REQUEST_TIMED_OUT "Časový limit žádosti vypršel.\n"
55-
IDS_TTL_EXPIRED "TTL expired in transit.\n"
56-
IDS_TRANSMIT_FAILED "PING: transmit failed. (Error %u)\n"
56+
IDS_TTL_EXPIRED "Vypršelo TTL během přenosu.\n"
57+
IDS_TRANSMIT_FAILED "PING: přenos selhal. (Chyba %u)\n"
5758

5859
IDS_STATISTICS "\n\
5960
Statistika pro %s:\n\
@@ -62,5 +63,5 @@ Statistika pro %s:\n\
6263
IDS_APPROXIMATE_RTT "Přibližná doba do přijetí odezvy v milisekundách:\n\
6364
Minimum = %lums, Maximum = %lums, Průměr = %lums\n"
6465

65-
IDS_WINSOCK_FAIL "Failed to initialize WinSock: %i\n"
66+
IDS_WINSOCK_FAIL "Inicializace WinSock selhala: %i\n"
6667
END

0 commit comments

Comments
 (0)