https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0972f71d9abb1a7e88660…
commit 0972f71d9abb1a7e88660cbfbe8e2d564bb1e102
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Fri Jun 16 00:13:30 2023 +0200
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Sun Jun 18 20:44:13 2023 +0200
[NTOS:PNP] Assert the presence of a device extension when handling PnP root power IRPs
Handling PnP root driver power IRPs requires that a device object must come up
with a device extension to determine whether it is a function driver and if so,
handle the IRP accordingly.
CORE-18989
---
ntoskrnl/io/pnpmgr/pnproot.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ntoskrnl/io/pnpmgr/pnproot.c b/ntoskrnl/io/pnpmgr/pnproot.c
index c41844b64d3..58d740b7d3b 100644
--- a/ntoskrnl/io/pnpmgr/pnproot.c
+++ b/ntoskrnl/io/pnpmgr/pnproot.c
@@ -1473,6 +1473,12 @@ PnpRootPowerControl(
Status = Irp->IoStatus.Status;
IrpSp = IoGetCurrentIrpStackLocation(Irp);
+ /*
+ * We must handle power IRPs based on whether it is a function driver
+ * or not from the device extension, so it cannot be NULL.
+ */
+ ASSERT(DeviceExtension);
+
if (DeviceExtension->Common.IsFDO)
{
ASSERT(!DeviceExtension->Common.IsFDO);
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=89ecf32e0b0101e469e90…
commit 89ecf32e0b0101e469e9084519841a98f739897d
Author: Stanislav Motylkov <x86corez(a)gmail.com>
AuthorDate: Sun Jun 18 19:16:17 2023 +0300
Commit: Stanislav Motylkov <x86corez(a)gmail.com>
CommitDate: Sun Jun 18 19:16:17 2023 +0300
[MSPAINT] Improve wording of IDS_CANTPASTE message
Follow-up of #5349 (9f56e67). CORE-18867
---
base/applications/mspaint/lang/bg-BG.rc | 2 +-
base/applications/mspaint/lang/cs-CZ.rc | 2 +-
base/applications/mspaint/lang/de-DE.rc | 2 +-
base/applications/mspaint/lang/en-GB.rc | 2 +-
base/applications/mspaint/lang/en-US.rc | 2 +-
base/applications/mspaint/lang/es-ES.rc | 2 +-
base/applications/mspaint/lang/et-EE.rc | 2 +-
base/applications/mspaint/lang/eu-ES.rc | 2 +-
base/applications/mspaint/lang/fr-FR.rc | 2 +-
base/applications/mspaint/lang/he-IL.rc | 2 +-
base/applications/mspaint/lang/hu-HU.rc | 2 +-
base/applications/mspaint/lang/id-ID.rc | 2 +-
base/applications/mspaint/lang/it-IT.rc | 2 +-
base/applications/mspaint/lang/nl-NL.rc | 2 +-
base/applications/mspaint/lang/no-NO.rc | 2 +-
base/applications/mspaint/lang/pl-PL.rc | 2 +-
base/applications/mspaint/lang/pt-BR.rc | 2 +-
base/applications/mspaint/lang/pt-PT.rc | 2 +-
base/applications/mspaint/lang/ro-RO.rc | 2 +-
base/applications/mspaint/lang/ru-RU.rc | 2 +-
base/applications/mspaint/lang/sk-SK.rc | 2 +-
base/applications/mspaint/lang/sq-AL.rc | 2 +-
base/applications/mspaint/lang/sv-SE.rc | 2 +-
base/applications/mspaint/lang/tr-TR.rc | 2 +-
base/applications/mspaint/lang/uk-UA.rc | 2 +-
base/applications/mspaint/lang/vi-VN.rc | 2 +-
base/applications/mspaint/lang/zh-CN.rc | 2 +-
base/applications/mspaint/lang/zh-HK.rc | 2 +-
base/applications/mspaint/lang/zh-TW.rc | 2 +-
29 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/base/applications/mspaint/lang/bg-BG.rc b/base/applications/mspaint/lang/bg-BG.rc
index 49fdda7a16b..e5d1a5eb4b5 100644
--- a/base/applications/mspaint/lang/bg-BG.rc
+++ b/base/applications/mspaint/lang/bg-BG.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Подчертан"
IDS_VERTICAL "Вертикален"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/cs-CZ.rc b/base/applications/mspaint/lang/cs-CZ.rc
index 40d16e29cf5..e7175cfb789 100644
--- a/base/applications/mspaint/lang/cs-CZ.rc
+++ b/base/applications/mspaint/lang/cs-CZ.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/de-DE.rc b/base/applications/mspaint/lang/de-DE.rc
index 6901a9ce68e..c037f76a5bd 100644
--- a/base/applications/mspaint/lang/de-DE.rc
+++ b/base/applications/mspaint/lang/de-DE.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/en-GB.rc b/base/applications/mspaint/lang/en-GB.rc
index c2590081acb..6275fa87c6e 100644
--- a/base/applications/mspaint/lang/en-GB.rc
+++ b/base/applications/mspaint/lang/en-GB.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d dots per inch"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/en-US.rc b/base/applications/mspaint/lang/en-US.rc
index 408a60bc505..e81466d7177 100644
--- a/base/applications/mspaint/lang/en-US.rc
+++ b/base/applications/mspaint/lang/en-US.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d dots per inch"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/es-ES.rc b/base/applications/mspaint/lang/es-ES.rc
index 782968cbd1b..313b56435c6 100644
--- a/base/applications/mspaint/lang/es-ES.rc
+++ b/base/applications/mspaint/lang/es-ES.rc
@@ -244,5 +244,5 @@ BEGIN
IDS_UNDERLINE "Subrayado"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/et-EE.rc b/base/applications/mspaint/lang/et-EE.rc
index 16a381596b8..3895c6266b1 100644
--- a/base/applications/mspaint/lang/et-EE.rc
+++ b/base/applications/mspaint/lang/et-EE.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/eu-ES.rc b/base/applications/mspaint/lang/eu-ES.rc
index 066460512df..1d5565cb184 100644
--- a/base/applications/mspaint/lang/eu-ES.rc
+++ b/base/applications/mspaint/lang/eu-ES.rc
@@ -234,5 +234,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/fr-FR.rc b/base/applications/mspaint/lang/fr-FR.rc
index 147b939fb58..c2428c63a4a 100644
--- a/base/applications/mspaint/lang/fr-FR.rc
+++ b/base/applications/mspaint/lang/fr-FR.rc
@@ -234,5 +234,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/he-IL.rc b/base/applications/mspaint/lang/he-IL.rc
index 9a381bc4ff4..b5a6e494d7a 100644
--- a/base/applications/mspaint/lang/he-IL.rc
+++ b/base/applications/mspaint/lang/he-IL.rc
@@ -237,5 +237,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/hu-HU.rc b/base/applications/mspaint/lang/hu-HU.rc
index ac16396730f..c80bcc33d6b 100644
--- a/base/applications/mspaint/lang/hu-HU.rc
+++ b/base/applications/mspaint/lang/hu-HU.rc
@@ -234,5 +234,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/id-ID.rc b/base/applications/mspaint/lang/id-ID.rc
index 6e082265cbf..312ef62a3de 100644
--- a/base/applications/mspaint/lang/id-ID.rc
+++ b/base/applications/mspaint/lang/id-ID.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/it-IT.rc b/base/applications/mspaint/lang/it-IT.rc
index 0ee7d4f8457..8d54f0c5c01 100644
--- a/base/applications/mspaint/lang/it-IT.rc
+++ b/base/applications/mspaint/lang/it-IT.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/nl-NL.rc b/base/applications/mspaint/lang/nl-NL.rc
index 5cb77b29837..4b3285670bc 100644
--- a/base/applications/mspaint/lang/nl-NL.rc
+++ b/base/applications/mspaint/lang/nl-NL.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/no-NO.rc b/base/applications/mspaint/lang/no-NO.rc
index 83434aa1a35..30a2a258863 100644
--- a/base/applications/mspaint/lang/no-NO.rc
+++ b/base/applications/mspaint/lang/no-NO.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/pl-PL.rc b/base/applications/mspaint/lang/pl-PL.rc
index 86f1c53bef8..62191b61216 100644
--- a/base/applications/mspaint/lang/pl-PL.rc
+++ b/base/applications/mspaint/lang/pl-PL.rc
@@ -243,5 +243,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/pt-BR.rc b/base/applications/mspaint/lang/pt-BR.rc
index db0e4a0b2a0..28a0e26eaeb 100644
--- a/base/applications/mspaint/lang/pt-BR.rc
+++ b/base/applications/mspaint/lang/pt-BR.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/pt-PT.rc b/base/applications/mspaint/lang/pt-PT.rc
index 638eabfe402..561a5f774a4 100644
--- a/base/applications/mspaint/lang/pt-PT.rc
+++ b/base/applications/mspaint/lang/pt-PT.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Sublinhado"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/ro-RO.rc b/base/applications/mspaint/lang/ro-RO.rc
index e6349714f3d..4aba57be15f 100644
--- a/base/applications/mspaint/lang/ro-RO.rc
+++ b/base/applications/mspaint/lang/ro-RO.rc
@@ -243,5 +243,5 @@ BEGIN
IDS_UNDERLINE "Subliniat"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/ru-RU.rc b/base/applications/mspaint/lang/ru-RU.rc
index f65543435cb..e7b08265148 100644
--- a/base/applications/mspaint/lang/ru-RU.rc
+++ b/base/applications/mspaint/lang/ru-RU.rc
@@ -234,5 +234,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/sk-SK.rc b/base/applications/mspaint/lang/sk-SK.rc
index 1abab0cd683..d728044f8a2 100644
--- a/base/applications/mspaint/lang/sk-SK.rc
+++ b/base/applications/mspaint/lang/sk-SK.rc
@@ -243,5 +243,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/sq-AL.rc b/base/applications/mspaint/lang/sq-AL.rc
index d77521cae5e..b749bd24c3a 100644
--- a/base/applications/mspaint/lang/sq-AL.rc
+++ b/base/applications/mspaint/lang/sq-AL.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/sv-SE.rc b/base/applications/mspaint/lang/sv-SE.rc
index 8301fe01424..79f30dcae74 100644
--- a/base/applications/mspaint/lang/sv-SE.rc
+++ b/base/applications/mspaint/lang/sv-SE.rc
@@ -234,5 +234,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/tr-TR.rc b/base/applications/mspaint/lang/tr-TR.rc
index 227c35fe17b..d299c5b40ba 100644
--- a/base/applications/mspaint/lang/tr-TR.rc
+++ b/base/applications/mspaint/lang/tr-TR.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Altı Çizgili"
IDS_VERTICAL "Düşey"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/uk-UA.rc b/base/applications/mspaint/lang/uk-UA.rc
index 00a9e8ea90c..d7eb147c950 100644
--- a/base/applications/mspaint/lang/uk-UA.rc
+++ b/base/applications/mspaint/lang/uk-UA.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/vi-VN.rc b/base/applications/mspaint/lang/vi-VN.rc
index b826a9270bd..247f547ef17 100644
--- a/base/applications/mspaint/lang/vi-VN.rc
+++ b/base/applications/mspaint/lang/vi-VN.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "Underline"
IDS_VERTICAL "Vertical"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/zh-CN.rc b/base/applications/mspaint/lang/zh-CN.rc
index 8aea3b4c409..69216e71489 100644
--- a/base/applications/mspaint/lang/zh-CN.rc
+++ b/base/applications/mspaint/lang/zh-CN.rc
@@ -244,5 +244,5 @@ BEGIN
IDS_UNDERLINE "下划线"
IDS_VERTICAL "垂直"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/zh-HK.rc b/base/applications/mspaint/lang/zh-HK.rc
index ca0db48b6d0..0577111e768 100644
--- a/base/applications/mspaint/lang/zh-HK.rc
+++ b/base/applications/mspaint/lang/zh-HK.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "底線"
IDS_VERTICAL "垂直"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END
diff --git a/base/applications/mspaint/lang/zh-TW.rc b/base/applications/mspaint/lang/zh-TW.rc
index 1ed27e4ec36..2c4675630ef 100644
--- a/base/applications/mspaint/lang/zh-TW.rc
+++ b/base/applications/mspaint/lang/zh-TW.rc
@@ -242,5 +242,5 @@ BEGIN
IDS_UNDERLINE "底線"
IDS_VERTICAL "垂直"
IDS_PRINTRES "%d x %d pixel/cm"
- IDS_CANTPASTE "Sorry, this application cannot paste this data. The data format is either incorrect or not supported."
+ IDS_CANTPASTE "Failed to paste from the clipboard. The data format is either incorrect or not supported."
END