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
884e7eed
Commit
884e7eed
authored
Nov 28, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Make some data const.
parent
601bf6ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
ordinal.c
dlls/shlwapi/ordinal.c
+7
-4
reg.c
dlls/shlwapi/reg.c
+3
-3
No files found.
dlls/shlwapi/ordinal.c
View file @
884e7eed
...
...
@@ -370,9 +370,10 @@ HANDLE WINAPI SHMapHandle(HANDLE hShared, DWORD dwDstProcId, DWORD dwSrcProcId,
*/
HRESULT
WINAPI
RegisterDefaultAcceptHeaders
(
LPBC
lpBC
,
IUnknown
*
lpUnknown
)
{
static
WCHAR
szProperty
[]
=
{
'{'
,
'D'
,
'0'
,
'F'
,
'C'
,
'A'
,
'4'
,
'2'
,
'0'
,
static
const
WCHAR
szProperty
[]
=
{
'{'
,
'D'
,
'0'
,
'F'
,
'C'
,
'A'
,
'4'
,
'2'
,
'0'
,
'-'
,
'D'
,
'3'
,
'F'
,
'5'
,
'-'
,
'1'
,
'1'
,
'C'
,
'F'
,
'-'
,
'B'
,
'2'
,
'1'
,
'1'
,
'-'
,
'0'
,
'0'
,
'A'
,
'A'
,
'0'
,
'0'
,
'4'
,
'A'
,
'E'
,
'8'
,
'3'
,
'7'
,
'}'
,
'\0'
};
BSTR
property
;
IEnumFORMATETC
*
pIEnumFormatEtc
=
NULL
;
VARIANTARG
var
;
HRESULT
hRet
;
...
...
@@ -388,7 +389,9 @@ HRESULT WINAPI RegisterDefaultAcceptHeaders(LPBC lpBC, IUnknown *lpUnknown)
V_VT
(
&
var
)
=
VT_EMPTY
;
/* The property we get is the browsers clipboard enumerator */
hRet
=
IWebBrowserApp_GetProperty
(
pBrowser
,
(
BSTR
)
szProperty
,
&
var
);
property
=
SysAllocString
(
szProperty
);
hRet
=
IWebBrowserApp_GetProperty
(
pBrowser
,
property
,
&
var
);
SysFreeString
(
property
);
if
(
FAILED
(
hRet
))
return
hRet
;
...
...
@@ -2577,7 +2580,7 @@ HRESULT WINAPI IUnknown_GetSite(LPUNKNOWN lpUnknown, REFIID iid, PVOID *lppSite)
HWND
WINAPI
SHCreateWorkerWindowA
(
LONG
wndProc
,
HWND
hWndParent
,
DWORD
dwExStyle
,
DWORD
dwStyle
,
HMENU
hMenu
,
LONG
z
)
{
static
const
char
*
szClass
=
"WorkerA"
;
static
const
char
szClass
[]
=
"WorkerA"
;
WNDCLASSA
wc
;
HWND
hWnd
;
...
...
@@ -2814,7 +2817,7 @@ BOOL WINAPI GUIDFromStringW(LPCWSTR idstr, CLSID *id)
*/
DWORD
WINAPI
WhichPlatform
(
void
)
{
static
LPCSTR
szIntegratedBrowser
=
"IntegratedBrowser"
;
static
const
char
szIntegratedBrowser
[]
=
"IntegratedBrowser"
;
static
DWORD
dwState
=
0
;
HKEY
hKey
;
DWORD
dwRet
,
dwData
,
dwSize
;
...
...
dlls/shlwapi/reg.c
View file @
884e7eed
...
...
@@ -33,16 +33,16 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
shell
);
/* Key/Value names for MIME content types */
static
const
char
*
lpszContentTypeA
=
"Content Type"
;
static
const
char
lpszContentTypeA
[]
=
"Content Type"
;
static
const
WCHAR
lpszContentTypeW
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'e'
,
'n'
,
't'
,
' '
,
'T'
,
'y'
,
'p'
,
'e'
,
'\0'
};
static
const
char
*
szMimeDbContentA
=
"MIME
\\
Database
\\
Content Type
\\
"
;
static
const
char
szMimeDbContentA
[]
=
"MIME
\\
Database
\\
Content Type
\\
"
;
static
const
WCHAR
szMimeDbContentW
[]
=
{
'M'
,
'I'
,
'M'
,
'E'
,
'\\'
,
'D'
,
'a'
,
't'
,
'a'
,
'b'
,
'a'
,
's'
,
'e'
,
'\\'
,
'C'
,
'o'
,
'n'
,
't'
,
'e'
,
'n'
,
't'
,
' '
,
'T'
,
'y'
,
'p'
,
'e'
,
'\\'
,
0
};
static
const
DWORD
dwLenMimeDbContent
=
27
;
/* strlen of szMimeDbContentA/W */
static
const
char
*
szExtensionA
=
"Extension"
;
static
const
char
szExtensionA
[]
=
"Extension"
;
static
const
WCHAR
szExtensionW
[]
=
{
'E'
,
'x'
,
't'
,
'e'
,
'n'
,
's'
,
'i'
,
'o'
,
'n'
,
'\0'
};
/* internal structure of what the HUSKEY points to */
...
...
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