From 9ad4152e6d18f5af34ca66c4a4f36774cab807c7 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Thu, 30 Mar 2017 12:11:42 +0000 Subject: [PATCH] regedit: Make "Unknown Type" translatable. Signed-off-by: Hugh McMaster Signed-off-by: Alexandre Julliard --- po/ar.po | 2 +- po/bg.po | 2 +- po/ca.po | 2 +- po/cs.po | 2 +- po/da.po | 2 +- po/de.po | 2 +- po/el.po | 2 +- po/en.po | 2 +- po/en_US.po | 2 +- po/eo.po | 2 +- po/es.po | 2 +- po/fa.po | 2 +- po/fi.po | 2 +- po/fr.po | 2 +- po/he.po | 2 +- po/hi.po | 2 +- po/hr.po | 2 +- po/hu.po | 2 +- po/it.po | 2 +- po/ja.po | 2 +- po/ko.po | 2 +- po/lt.po | 2 +- po/ml.po | 2 +- po/nb_NO.po | 2 +- po/nl.po | 2 +- po/or.po | 2 +- po/pa.po | 2 +- po/pl.po | 2 +- po/pt_BR.po | 2 +- po/pt_PT.po | 2 +- po/rm.po | 2 +- po/ro.po | 2 +- po/ru.po | 2 +- po/sk.po | 2 +- po/sl.po | 2 +- po/sr_RS@cyrillic.po | 2 +- po/sr_RS@latin.po | 2 +- po/sv.po | 2 +- po/te.po | 2 +- po/th.po | 2 +- po/tr.po | 2 +- po/uk.po | 2 +- po/wa.po | 2 +- po/wine.pot | 2 +- po/zh_CN.po | 2 +- po/zh_TW.po | 2 +- programs/regedit/regedit.rc | 1 + programs/regedit/regproc.c | 12 +++++++++--- programs/regedit/resource.h | 1 + 49 files changed, 57 insertions(+), 49 deletions(-) diff --git a/po/ar.po b/po/ar.po index 89255df20fc..559f17e172c 100644 --- a/po/ar.po +++ b/po/ar.po @@ -7587,7 +7587,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "أدخل المحتوى من الحافظة إلى المستند." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "نوع غير معروف" diff --git a/po/bg.po b/po/bg.po index 2685410c8d9..51311afbf8b 100644 --- a/po/bg.po +++ b/po/bg.po @@ -7681,7 +7681,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/ca.po b/po/ca.po index 353e00a633e..64ce9590a93 100644 --- a/po/ca.po +++ b/po/ca.po @@ -7562,7 +7562,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Insereix el contingut del porta-retalls al vostre document." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Tipus desconegut" diff --git a/po/cs.po b/po/cs.po index 909a62ea89e..ca93af6255f 100644 --- a/po/cs.po +++ b/po/cs.po @@ -7515,7 +7515,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Vloží obsah schránky do Vašeho dokumentu." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Neznámý typ" diff --git a/po/da.po b/po/da.po index ec736bf4e61..34b047c5b39 100644 --- a/po/da.po +++ b/po/da.po @@ -7665,7 +7665,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Indsætter indholdet fra udklipsholderen ind i dokumentet." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Ukendt type" diff --git a/po/de.po b/po/de.po index 594586657c4..beb6cbc0fa8 100644 --- a/po/de.po +++ b/po/de.po @@ -7551,7 +7551,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Fügt den Inhalt der Zwischenablage in Ihr Dokument ein." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Unbekannter Typ" diff --git a/po/el.po b/po/el.po index d7b726a2e5a..951c629f999 100644 --- a/po/el.po +++ b/po/el.po @@ -7542,7 +7542,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 #, fuzzy msgid "Unknown Type" msgstr "&Περιεχόμενα" diff --git a/po/en.po b/po/en.po index d56a0ef50c9..0768082a1a5 100644 --- a/po/en.po +++ b/po/en.po @@ -7539,7 +7539,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Inserts the contents of the clipboard into your document." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Unknown Type" diff --git a/po/en_US.po b/po/en_US.po index e4639c707ed..52cf71cbdd9 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -7539,7 +7539,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Inserts the contents of the clipboard into your document." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Unknown Type" diff --git a/po/eo.po b/po/eo.po index f1cb441e9ca..ba544d57e98 100644 --- a/po/eo.po +++ b/po/eo.po @@ -7454,7 +7454,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/es.po b/po/es.po index 8dc3c672de6..10ddb9a12b9 100644 --- a/po/es.po +++ b/po/es.po @@ -7677,7 +7677,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Inserta el contenido del portapapeles en su documento." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Tipo desconocido" diff --git a/po/fa.po b/po/fa.po index ac7b032fc1d..3843ea530c1 100644 --- a/po/fa.po +++ b/po/fa.po @@ -7523,7 +7523,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/fi.po b/po/fi.po index 86116dcca00..a30f62516f9 100644 --- a/po/fi.po +++ b/po/fi.po @@ -7533,7 +7533,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Lisää leikepöydän sisällön dokumenttiisi." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Tuntematon tyyppi" diff --git a/po/fr.po b/po/fr.po index 0a48d9e84fe..95684efc69f 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7586,7 +7586,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Insère le contenu du presse-papiers dans votre document." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Type inconnu" diff --git a/po/he.po b/po/he.po index 85b9bc29fcb..78940fb5f67 100644 --- a/po/he.po +++ b/po/he.po @@ -7824,7 +7824,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "הוספת תוכן לוח הגזירים למסמך שלך." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "סוג לא ידוע" diff --git a/po/hi.po b/po/hi.po index 512673099e1..a63ccd67ecd 100644 --- a/po/hi.po +++ b/po/hi.po @@ -7406,7 +7406,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/hr.po b/po/hr.po index acf2f69c29d..f5958ef85be 100644 --- a/po/hr.po +++ b/po/hr.po @@ -7595,7 +7595,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Umeće sadržaj iz ostave u dokument." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Nepoznata vrsta" diff --git a/po/hu.po b/po/hu.po index 5740accdb02..2bb9e629a86 100644 --- a/po/hu.po +++ b/po/hu.po @@ -7625,7 +7625,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "A vágólap tartalmának beillesztése az Ön dokumentumába." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Ismeretlen típus" diff --git a/po/it.po b/po/it.po index a6c69aad387..5358521d809 100644 --- a/po/it.po +++ b/po/it.po @@ -7694,7 +7694,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Inserisce i contenuti degli appunti nel tuo documento." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Tipo sconosciuto" diff --git a/po/ja.po b/po/ja.po index 97324b65e8c..10852b5c573 100644 --- a/po/ja.po +++ b/po/ja.po @@ -7530,7 +7530,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "クリップボードの内容を挿入します。" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "不明な形式" diff --git a/po/ko.po b/po/ko.po index 816bf39dd51..9e1799d9c7b 100644 --- a/po/ko.po +++ b/po/ko.po @@ -7596,7 +7596,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "당신의 문서에 클립보드의 내용 삽입하기." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "알수 없는 형식" diff --git a/po/lt.po b/po/lt.po index 296660bcc8c..e28ffaddb03 100644 --- a/po/lt.po +++ b/po/lt.po @@ -7543,7 +7543,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Įterpia iškarpinės turinį į dokumentą." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Nežinomas tipas" diff --git a/po/ml.po b/po/ml.po index e23245254dc..69f4b6acbed 100644 --- a/po/ml.po +++ b/po/ml.po @@ -7406,7 +7406,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/nb_NO.po b/po/nb_NO.po index 9e15846c8f4..9a5815d0d85 100644 --- a/po/nb_NO.po +++ b/po/nb_NO.po @@ -7543,7 +7543,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Setter innholdet fra utklippstavlen inn i dokumentet." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Ukjent type" diff --git a/po/nl.po b/po/nl.po index c5994d484ef..b9616491cf5 100644 --- a/po/nl.po +++ b/po/nl.po @@ -7669,7 +7669,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Voegt de inhoud van het klembord in uw document." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Onbekend type" diff --git a/po/or.po b/po/or.po index 2f2dbc7d835..b2e842a2fdc 100644 --- a/po/or.po +++ b/po/or.po @@ -7406,7 +7406,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/pa.po b/po/pa.po index a912a05a775..dc300706a11 100644 --- a/po/pa.po +++ b/po/pa.po @@ -7406,7 +7406,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/pl.po b/po/pl.po index f12edaee983..331549e4dea 100644 --- a/po/pl.po +++ b/po/pl.po @@ -7560,7 +7560,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Wstawia zawartość schowka do dokumentu." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Nieznany typ" diff --git a/po/pt_BR.po b/po/pt_BR.po index 2677b4a69f8..cd0ede084d0 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -7555,7 +7555,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Insere o conteúdo da área de transferência no seu documento." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Tipo Desconhecido" diff --git a/po/pt_PT.po b/po/pt_PT.po index 3042c2f268f..60d5873314b 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -7532,7 +7532,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Insere o conteúdo da área de transferência no seu documento." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Tipo Desconhecido" diff --git a/po/rm.po b/po/rm.po index 153b39d0ca1..fc17a4836df 100644 --- a/po/rm.po +++ b/po/rm.po @@ -7461,7 +7461,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/ro.po b/po/ro.po index f127069579d..027d130169f 100644 --- a/po/ro.po +++ b/po/ro.po @@ -7581,7 +7581,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Inserează conținutul din clipboard în document." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Tip necunoscut" diff --git a/po/ru.po b/po/ru.po index eaacfbf16a7..89b8d81ec94 100644 --- a/po/ru.po +++ b/po/ru.po @@ -7546,7 +7546,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Вставка содержимое буфера обмена в документ." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Неизвестный тип" diff --git a/po/sk.po b/po/sk.po index f5290d348b3..2a434de9655 100644 --- a/po/sk.po +++ b/po/sk.po @@ -7551,7 +7551,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/sl.po b/po/sl.po index 19c7a5cffee..f971b711c61 100644 --- a/po/sl.po +++ b/po/sl.po @@ -7682,7 +7682,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Vstavi vsebino odložišča v vaš dokument." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Neznana vrsta" diff --git a/po/sr_RS@cyrillic.po b/po/sr_RS@cyrillic.po index ad58c77f4ab..454a72af909 100644 --- a/po/sr_RS@cyrillic.po +++ b/po/sr_RS@cyrillic.po @@ -7874,7 +7874,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Умеће садржај из оставе у документ." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Непозната врста" diff --git a/po/sr_RS@latin.po b/po/sr_RS@latin.po index 244b6a2d256..074d90ac7fa 100644 --- a/po/sr_RS@latin.po +++ b/po/sr_RS@latin.po @@ -7970,7 +7970,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Umeće sadržaj iz ostave u dokument." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Nepoznata vrsta" diff --git a/po/sv.po b/po/sv.po index e669149a2de..40948460c3c 100644 --- a/po/sv.po +++ b/po/sv.po @@ -7521,7 +7521,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Okänd typ" diff --git a/po/te.po b/po/te.po index d0a50cc9c69..5fd5e7fd2f8 100644 --- a/po/te.po +++ b/po/te.po @@ -7406,7 +7406,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/th.po b/po/th.po index adc613204f3..c8f0baab64b 100644 --- a/po/th.po +++ b/po/th.po @@ -7565,7 +7565,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/tr.po b/po/tr.po index ec311fdd6f0..20596d6f81a 100644 --- a/po/tr.po +++ b/po/tr.po @@ -7538,7 +7538,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Panonun içeriklerini belgenize ekler." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Bilinmeyen Tür" diff --git a/po/uk.po b/po/uk.po index 37640f38efe..fb09fae356f 100644 --- a/po/uk.po +++ b/po/uk.po @@ -7623,7 +7623,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "Вставка вмісту буфера до документа." -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "Невідомий тип" diff --git a/po/wa.po b/po/wa.po index 2d2b49a951f..9a48645169e 100644 --- a/po/wa.po +++ b/po/wa.po @@ -7501,7 +7501,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/wine.pot b/po/wine.pot index 8387cb8730c..06d8196cbef 100644 --- a/po/wine.pot +++ b/po/wine.pot @@ -7359,7 +7359,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "" diff --git a/po/zh_CN.po b/po/zh_CN.po index 21f6c9759be..1b6c552af96 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -7474,7 +7474,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "将剪贴板的内容插入到你的文件。" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "不明类型" diff --git a/po/zh_TW.po b/po/zh_TW.po index 1ee7f7b4bc4..7dd0e4a1ae1 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -7550,7 +7550,7 @@ msgstr "" msgid "Inserts the contents of the clipboard into your document." msgstr "將剪貼簿的內容插入到您的文件。" -#: oledlg.rc:48 +#: oledlg.rc:48 regedit.rc:397 msgid "Unknown Type" msgstr "不明類型" diff --git a/programs/regedit/regedit.rc b/programs/regedit/regedit.rc index 1cd838143ed..1d9b6cbb0a6 100644 --- a/programs/regedit/regedit.rc +++ b/programs/regedit/regedit.rc @@ -393,6 +393,7 @@ STRINGTABLE STRING_INCORRECT_REG_CLASS, "regedit: Incorrect registry class specification in '%1'.\n" STRING_REG_KEY_NOT_FOUND, "regedit: Unable to export '%1'. The specified registry key was not found.\n" STRING_DELETE_REG_CLASS_FAILED, "regedit: Unable to delete the registry class '%1'.\n" + STRING_UNKNOWN_TYPE, "Unknown Type" } /* define language neutral resources */ diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c index 751a3a527ab..131149fac92 100644 --- a/programs/regedit/regproc.c +++ b/programs/regedit/regproc.c @@ -345,7 +345,6 @@ static const WCHAR type_dword[] = {'R','E','G','_','D','W','O','R','D',0}; static const WCHAR type_dword_le[] = {'R','E','G','_','D','W','O','R','D','_','L','I','T','T','L','E','_','E','N','D','I','A','N',0}; static const WCHAR type_dword_be[] = {'R','E','G','_','D','W','O','R','D','_','B','I','G','_','E','N','D','I','A','N',0}; static const WCHAR type_multi_sz[] = {'R','E','G','_','M','U','L','T','I','_','S','Z',0}; -static const WCHAR unknown_type[] = {'U','n','k','n','o','w','n',' ','T','y','p','e',0}; static const struct { @@ -362,7 +361,6 @@ type_rels[] = {REG_DWORD_LITTLE_ENDIAN, type_dword_le}, {REG_DWORD_BIG_ENDIAN, type_dword_be}, {REG_MULTI_SZ, type_multi_sz}, - {REG_UNKNOWN_TYPE, unknown_type} }; static const WCHAR *reg_type_to_wchar(DWORD type) @@ -437,7 +435,15 @@ static LONG setValue(WCHAR* val_name, WCHAR* val_data, BOOL is_unicode) } else /* unknown format */ { - output_message(STRING_UNKNOWN_DATA_FORMAT, reg_type_to_wchar(dwDataType)); + if (dwDataType == REG_UNKNOWN_TYPE) + { + WCHAR buf[32]; + LoadStringW(GetModuleHandleW(NULL), STRING_UNKNOWN_TYPE, buf, ARRAY_SIZE(buf)); + output_message(STRING_UNKNOWN_DATA_FORMAT, buf); + } + else + output_message(STRING_UNKNOWN_DATA_FORMAT, reg_type_to_wchar(dwDataType)); + return ERROR_INVALID_DATA; } diff --git a/programs/regedit/resource.h b/programs/regedit/resource.h index 996cf76ecf3..295d9b43b2d 100644 --- a/programs/regedit/resource.h +++ b/programs/regedit/resource.h @@ -194,3 +194,4 @@ #define STRING_INCORRECT_REG_CLASS 3020 #define STRING_REG_KEY_NOT_FOUND 3021 #define STRING_DELETE_REG_CLASS_FAILED 3022 +#define STRING_UNKNOWN_TYPE 3023