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
8e4aff7a
Commit
8e4aff7a
authored
Feb 25, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Feb 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Add a message for opening files with no association.
parent
6e5c2f96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
shell32_En.rc
dlls/shell32/shell32_En.rc
+2
-0
shlexec.c
dlls/shell32/shlexec.c
+5
-1
shresdef.h
dlls/shell32/shresdef.h
+2
-0
No files found.
dlls/shell32/shell32_En.rc
View file @
8e4aff7a
...
@@ -282,6 +282,8 @@ STRINGTABLE
...
@@ -282,6 +282,8 @@ STRINGTABLE
IDS_CPANEL_TITLE "Wine Control Panel"
IDS_CPANEL_TITLE "Wine Control Panel"
IDS_CPANEL_NAME "Name"
IDS_CPANEL_NAME "Name"
IDS_CPANEL_DESCRIPTION "Description"
IDS_CPANEL_DESCRIPTION "Description"
IDS_SHLEXEC_NOASSOC "There is no Windows program configured to open this type of file."
}
}
STRINGTABLE
STRINGTABLE
...
...
dlls/shell32/shlexec.c
View file @
8e4aff7a
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
#include "wine/winbase16.h"
#include "wine/winbase16.h"
#include "shell32_main.h"
#include "shell32_main.h"
#include "pidl.h"
#include "pidl.h"
#include "shresdef.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
@@ -1454,7 +1455,10 @@ static void do_error_dialog( UINT_PTR retval, HWND hwnd )
...
@@ -1454,7 +1455,10 @@ static void do_error_dialog( UINT_PTR retval, HWND hwnd )
WCHAR
msg
[
2048
];
WCHAR
msg
[
2048
];
int
error_code
=
GetLastError
();
int
error_code
=
GetLastError
();
FormatMessageW
(
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
error_code
,
0
,
msg
,
sizeof
(
msg
)
/
sizeof
(
WCHAR
),
NULL
);
if
(
retval
==
SE_ERR_NOASSOC
)
LoadStringW
(
shell32_hInstance
,
IDS_SHLEXEC_NOASSOC
,
msg
,
sizeof
(
msg
)
/
sizeof
(
WCHAR
));
else
FormatMessageW
(
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
error_code
,
0
,
msg
,
sizeof
(
msg
)
/
sizeof
(
WCHAR
),
NULL
);
MessageBoxW
(
hwnd
,
msg
,
NULL
,
MB_ICONERROR
);
MessageBoxW
(
hwnd
,
msg
,
NULL
,
MB_ICONERROR
);
}
}
...
...
dlls/shell32/shresdef.h
View file @
8e4aff7a
...
@@ -106,6 +106,8 @@
...
@@ -106,6 +106,8 @@
#define IDS_RUNDLG_BROWSE_CAPTION 162
#define IDS_RUNDLG_BROWSE_CAPTION 162
#define IDS_RUNDLG_BROWSE_FILTER 163
#define IDS_RUNDLG_BROWSE_FILTER 163
#define IDS_SHLEXEC_NOASSOC 164
#define IDS_LICENSE 256
#define IDS_LICENSE 256
#define IDS_LICENSE_CAPTION 257
#define IDS_LICENSE_CAPTION 257
...
...
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