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
04453937
Commit
04453937
authored
Sep 25, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcpl.cpl: Added support for clearing cookies and history cache.
parent
306f53cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
Makefile.in
dlls/inetcpl.cpl/Makefile.in
+1
-1
general.c
dlls/inetcpl.cpl/general.c
+21
-5
No files found.
dlls/inetcpl.cpl/Makefile.in
View file @
04453937
MODULE
=
inetcpl.cpl
MODULE
=
inetcpl.cpl
IMPORTS
=
comctl32 shlwapi user32 advapi32
IMPORTS
=
comctl32 shlwapi user32 advapi32
DELAYIMPORTS
=
cryptui wininet ole32 urlmon
DELAYIMPORTS
=
cryptui wininet ole32 urlmon
shell32
C_SRCS
=
\
C_SRCS
=
\
content.c
\
content.c
\
...
...
dlls/inetcpl.cpl/general.c
View file @
04453937
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <winreg.h>
#include <winreg.h>
#include <shlwapi.h>
#include <shlwapi.h>
#include <prsht.h>
#include <prsht.h>
#include <shlobj.h>
#include "inetcpl.h"
#include "inetcpl.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
@@ -47,9 +48,7 @@ static DWORD disabled_general_buttons[] = {IDC_HOME_CURRENT,
...
@@ -47,9 +48,7 @@ static DWORD disabled_general_buttons[] = {IDC_HOME_CURRENT,
IDC_HOME_DEFAULT
,
IDC_HOME_DEFAULT
,
IDC_HISTORY_SETTINGS
,
IDC_HISTORY_SETTINGS
,
0
};
0
};
static
DWORD
disabled_delhist_buttons
[]
=
{
IDC_DELETE_COOKIES
,
static
DWORD
disabled_delhist_buttons
[]
=
{
IDC_DELETE_FORM_DATA
,
IDC_DELETE_HISTORY
,
IDC_DELETE_FORM_DATA
,
IDC_DELETE_PASSWORDS
,
IDC_DELETE_PASSWORDS
,
0
};
0
};
...
@@ -64,8 +63,25 @@ static INT_PTR delhist_on_command(HWND hdlg, WPARAM wparam)
...
@@ -64,8 +63,25 @@ static INT_PTR delhist_on_command(HWND hdlg, WPARAM wparam)
switch
(
wparam
)
switch
(
wparam
)
{
{
case
MAKEWPARAM
(
IDOK
,
BN_CLICKED
):
case
MAKEWPARAM
(
IDOK
,
BN_CLICKED
):
if
(
!
FreeUrlCacheSpaceW
(
NULL
,
100
,
FCS_PERCENT_CACHE_SPACE
))
if
(
IsDlgButtonChecked
(
hdlg
,
IDC_DELETE_TEMP_FILES
))
break
;
/* Don't close the dialog. */
FreeUrlCacheSpaceW
(
NULL
,
100
,
0
);
if
(
IsDlgButtonChecked
(
hdlg
,
IDC_DELETE_COOKIES
))
{
WCHAR
pathW
[
MAX_PATH
];
if
(
SHGetSpecialFolderPathW
(
NULL
,
pathW
,
CSIDL_COOKIES
,
TRUE
))
FreeUrlCacheSpaceW
(
pathW
,
100
,
0
);
}
if
(
IsDlgButtonChecked
(
hdlg
,
IDC_DELETE_HISTORY
))
{
WCHAR
pathW
[
MAX_PATH
];
if
(
SHGetSpecialFolderPathW
(
NULL
,
pathW
,
CSIDL_HISTORY
,
TRUE
))
FreeUrlCacheSpaceW
(
pathW
,
100
,
0
);
}
EndDialog
(
hdlg
,
IDOK
);
EndDialog
(
hdlg
,
IDOK
);
return
TRUE
;
return
TRUE
;
...
...
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