Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6b8ee0e4
Commit
6b8ee0e4
authored
Oct 16, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Refuse to load OLE compound storage files like Windows does.
parent
7fa032d1
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
20 additions
and
0 deletions
+20
-0
De.rc
programs/wordpad/De.rc
+1
-0
En.rc
programs/wordpad/En.rc
+1
-0
Fr.rc
programs/wordpad/Fr.rc
+1
-0
Hu.rc
programs/wordpad/Hu.rc
+1
-0
Ko.rc
programs/wordpad/Ko.rc
+1
-0
Nl.rc
programs/wordpad/Nl.rc
+1
-0
No.rc
programs/wordpad/No.rc
+1
-0
Pl.rc
programs/wordpad/Pl.rc
+1
-0
Ru.rc
programs/wordpad/Ru.rc
+1
-0
Tr.rc
programs/wordpad/Tr.rc
+1
-0
resource.h
programs/wordpad/resource.h
+1
-0
wordpad.c
programs/wordpad/wordpad.c
+9
-0
No files found.
programs/wordpad/De.rc
View file @
6b8ee0e4
...
...
@@ -229,4 +229,5 @@ BEGIN
"which will cause all formatting to be lost. " \
"Are you sure that you wish to do this?"
STRING_INVALID_NUMBER, "Invalid number format"
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
END
programs/wordpad/En.rc
View file @
6b8ee0e4
...
...
@@ -229,4 +229,5 @@ BEGIN
"which will cause all formatting to be lost. " \
"Are you sure that you wish to do this?"
STRING_INVALID_NUMBER, "Invalid number format"
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
END
programs/wordpad/Fr.rc
View file @
6b8ee0e4
...
...
@@ -229,4 +229,5 @@ BEGIN
"which will cause all formatting to be lost. " \
"Are you sure that you wish to do this?"
STRING_INVALID_NUMBER, "Invalid number format"
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
END
programs/wordpad/Hu.rc
View file @
6b8ee0e4
...
...
@@ -229,4 +229,5 @@ BEGIN
"which will cause all formatting to be lost. " \
"Are you sure that you wish to do this?"
STRING_INVALID_NUMBER, "Invalid number format"
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
END
programs/wordpad/Ko.rc
View file @
6b8ee0e4
...
...
@@ -223,4 +223,5 @@ BEGIN
"이것은 특수한 꾸밈을 없엘 것입니다. " \
"당신은 정말로 저장하기를 원합니까?"
STRING_INVALID_NUMBER, "올바르지 않은 수 형식"
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
END
programs/wordpad/Nl.rc
View file @
6b8ee0e4
...
...
@@ -229,4 +229,5 @@ BEGIN
"which will cause all formatting to be lost. " \
"Are you sure that you wish to do this?"
STRING_INVALID_NUMBER, "Invalid number format"
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
END
programs/wordpad/No.rc
View file @
6b8ee0e4
...
...
@@ -229,4 +229,5 @@ BEGIN
"vil fre til at all formatering gr tapt. Er du " \
"sikker p at du vil fortsette?"
STRING_INVALID_NUMBER, "Ugyldig tallformat"
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
END
programs/wordpad/Pl.rc
View file @
6b8ee0e4
...
...
@@ -230,4 +230,5 @@ BEGIN
"which will cause all formatting to be lost. " \
"Are you sure that you wish to do this?"
STRING_INVALID_NUMBER, "Invalid number format"
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
END
programs/wordpad/Ru.rc
View file @
6b8ee0e4
...
...
@@ -228,4 +228,5 @@ BEGIN
"which will cause all formatting to be lost. " \
"Are you sure that you wish to do this?"
STRING_INVALID_NUMBER, "Invalid number format"
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
END
programs/wordpad/Tr.rc
View file @
6b8ee0e4
...
...
@@ -232,4 +232,5 @@ BEGIN
"which will cause all formatting to be lost. " \
"Are you sure that you wish to do this?"
STRING_INVALID_NUMBER, "Invalid number format"
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
END
programs/wordpad/resource.h
View file @
6b8ee0e4
...
...
@@ -180,3 +180,4 @@
#define STRING_LOAD_RICHED_FAILED 1703
#define STRING_SAVE_LOSEFORMATTING 1704
#define STRING_INVALID_NUMBER 1705
#define STRING_OLE_STORAGE_NOT_SUPPORTED 1706
programs/wordpad/wordpad.c
View file @
6b8ee0e4
...
...
@@ -1092,8 +1092,17 @@ static void DoOpenFile(LPCWSTR szOpenFileName)
}
else
if
(
readOut
>=
5
)
{
static
const
char
header
[]
=
"{
\\
rtf"
;
static
const
BYTE
STG_magic
[]
=
{
0xd0
,
0xcf
,
0x11
,
0xe0
};
if
(
!
memcmp
(
header
,
fileStart
,
5
))
format
=
SF_RTF
;
else
if
(
!
memcmp
(
STG_magic
,
fileStart
,
sizeof
(
STG_magic
)))
{
CloseHandle
(
hFile
);
MessageBoxW
(
hMainWnd
,
MAKEINTRESOURCEW
(
STRING_OLE_STORAGE_NOT_SUPPORTED
),
wszAppTitle
,
MB_OK
|
MB_ICONEXCLAMATION
);
return
;
}
}
es
.
dwCookie
=
(
DWORD_PTR
)
hFile
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment