Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8fc374d8
Commit
8fc374d8
authored
Apr 20, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Unicode strings 'static const'.
parent
52c08321
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
32 deletions
+32
-32
wksta.c
dlls/netapi32/tests/wksta.c
+1
-2
storage32.c
dlls/ole32/storage32.c
+2
-2
olefont.c
dlls/oleaut32/olefont.c
+2
-2
typelib2.c
dlls/oleaut32/typelib2.c
+6
-6
shlfsbind.c
dlls/shell32/shlfsbind.c
+4
-4
ordinal.c
dlls/shlwapi/ordinal.c
+4
-4
umon.c
dlls/urlmon/umon.c
+6
-6
http.c
dlls/wininet/http.c
+6
-5
protocol.c
dlls/wsock32/protocol.c
+1
-1
No files found.
dlls/netapi32/tests/wksta.c
View file @
8fc374d8
...
@@ -62,8 +62,7 @@ static int init_wksta_tests(void)
...
@@ -62,8 +62,7 @@ static int init_wksta_tests(void)
static
void
run_get_comp_name_tests
(
void
)
static
void
run_get_comp_name_tests
(
void
)
{
{
WCHAR
empty
[]
=
{
0
};
LPWSTR
ws
=
NULL
;
LPWSTR
ws
=
empty
;
if
(
!
pNetpGetComputerName
)
if
(
!
pNetpGetComputerName
)
return
;
return
;
...
...
dlls/ole32/storage32.c
View file @
8fc374d8
...
@@ -6663,7 +6663,7 @@ static HRESULT CLSIDFromUserType(LPCWSTR lpszUserType, CLSID *clsid)
...
@@ -6663,7 +6663,7 @@ static HRESULT CLSIDFromUserType(LPCWSTR lpszUserType, CLSID *clsid)
HKEY
hkey
,
hkeyclsid
;
HKEY
hkey
,
hkeyclsid
;
LPWSTR
buffer
=
NULL
;
LPWSTR
buffer
=
NULL
;
BOOL
found
=
FALSE
;
BOOL
found
=
FALSE
;
const
WCHAR
szclsid
[]
=
{
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
szclsid
[]
=
{
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
TRACE
(
"Finding CLSID for %s
\n
"
,
debugstr_w
(
lpszUserType
));
TRACE
(
"Finding CLSID for %s
\n
"
,
debugstr_w
(
lpszUserType
));
...
@@ -6770,7 +6770,7 @@ HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lp
...
@@ -6770,7 +6770,7 @@ HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lp
{
{
HRESULT
r
;
HRESULT
r
;
IStream
*
stm
=
0
;
IStream
*
stm
=
0
;
const
WCHAR
szCompObj
[]
=
{
1
,
'C'
,
'o'
,
'm'
,
'p'
,
'O'
,
'b'
,
'j'
,
0
};
static
const
WCHAR
szCompObj
[]
=
{
1
,
'C'
,
'o'
,
'm'
,
'p'
,
'O'
,
'b'
,
'j'
,
0
};
unsigned
char
unknown1
[
12
];
unsigned
char
unknown1
[
12
];
unsigned
char
unknown2
[
16
];
unsigned
char
unknown2
[
16
];
DWORD
count
;
DWORD
count
;
...
...
dlls/oleaut32/olefont.c
View file @
8fc374d8
...
@@ -311,10 +311,10 @@ HRESULT WINAPI OleCreateFontIndirect(
...
@@ -311,10 +311,10 @@ HRESULT WINAPI OleCreateFontIndirect(
if
(
!
lpFontDesc
)
{
if
(
!
lpFontDesc
)
{
FONTDESC
fd
;
FONTDESC
fd
;
WCHAR
fname
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
0
};
static
const
WCHAR
fname
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
0
};
fd
.
cbSizeofstruct
=
sizeof
(
fd
);
fd
.
cbSizeofstruct
=
sizeof
(
fd
);
fd
.
lpstrName
=
fname
;
fd
.
lpstrName
=
(
WCHAR
*
)
fname
;
fd
.
cySize
.
s
.
Lo
=
80000
;
fd
.
cySize
.
s
.
Lo
=
80000
;
fd
.
cySize
.
s
.
Hi
=
0
;
fd
.
cySize
.
s
.
Hi
=
0
;
fd
.
sWeight
=
0
;
fd
.
sWeight
=
0
;
...
...
dlls/oleaut32/typelib2.c
View file @
8fc374d8
...
@@ -358,7 +358,7 @@ static int ctl2_find_name(
...
@@ -358,7 +358,7 @@ static int ctl2_find_name(
*/
*/
static
int
ctl2_encode_name
(
static
int
ctl2_encode_name
(
ICreateTypeLib2Impl
*
This
,
/* [I] The typelib to operate against (used for LCID only). */
ICreateTypeLib2Impl
*
This
,
/* [I] The typelib to operate against (used for LCID only). */
WCHAR
*
name
,
/* [I] The name string to encode. */
const
WCHAR
*
name
,
/* [I] The name string to encode. */
char
**
result
)
/* [O] A pointer to a pointer to receive the encoded name. */
char
**
result
)
/* [O] A pointer to a pointer to receive the encoded name. */
{
{
int
length
;
int
length
;
...
@@ -402,7 +402,7 @@ static int ctl2_encode_name(
...
@@ -402,7 +402,7 @@ static int ctl2_encode_name(
*/
*/
static
int
ctl2_encode_string
(
static
int
ctl2_encode_string
(
ICreateTypeLib2Impl
*
This
,
/* [I] The typelib to operate against (not used?). */
ICreateTypeLib2Impl
*
This
,
/* [I] The typelib to operate against (not used?). */
WCHAR
*
string
,
/* [I] The string to encode. */
const
WCHAR
*
string
,
/* [I] The string to encode. */
char
**
result
)
/* [O] A pointer to a pointer to receive the encoded string. */
char
**
result
)
/* [O] A pointer to a pointer to receive the encoded string. */
{
{
int
length
;
int
length
;
...
@@ -581,7 +581,7 @@ static int ctl2_alloc_guid(
...
@@ -581,7 +581,7 @@ static int ctl2_alloc_guid(
*/
*/
static
int
ctl2_alloc_name
(
static
int
ctl2_alloc_name
(
ICreateTypeLib2Impl
*
This
,
/* [I] The type library to allocate in. */
ICreateTypeLib2Impl
*
This
,
/* [I] The type library to allocate in. */
WCHAR
*
name
)
/* [I] The name to store. */
const
WCHAR
*
name
)
/* [I] The name to store. */
{
{
int
length
;
int
length
;
int
offset
;
int
offset
;
...
@@ -624,7 +624,7 @@ static int ctl2_alloc_name(
...
@@ -624,7 +624,7 @@ static int ctl2_alloc_name(
*/
*/
static
int
ctl2_alloc_string
(
static
int
ctl2_alloc_string
(
ICreateTypeLib2Impl
*
This
,
/* [I] The type library to allocate in. */
ICreateTypeLib2Impl
*
This
,
/* [I] The type library to allocate in. */
WCHAR
*
string
)
/* [I] The string to store. */
const
WCHAR
*
string
)
/* [I] The string to store. */
{
{
int
length
;
int
length
;
int
offset
;
int
offset
;
...
@@ -698,7 +698,7 @@ static int ctl2_alloc_importfile(
...
@@ -698,7 +698,7 @@ static int ctl2_alloc_importfile(
int
guidoffset
,
/* [I] The offset to the GUID for the imported library. */
int
guidoffset
,
/* [I] The offset to the GUID for the imported library. */
int
major_version
,
/* [I] The major version number of the imported library. */
int
major_version
,
/* [I] The major version number of the imported library. */
int
minor_version
,
/* [I] The minor version number of the imported library. */
int
minor_version
,
/* [I] The minor version number of the imported library. */
WCHAR
*
filename
)
/* [I] The filename of the imported library. */
const
WCHAR
*
filename
)
/* [I] The filename of the imported library. */
{
{
int
length
;
int
length
;
int
offset
;
int
offset
;
...
@@ -1220,7 +1220,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetTypeFlags(ICreateTypeInfo2 *iface, U
...
@@ -1220,7 +1220,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetTypeFlags(ICreateTypeInfo2 *iface, U
int
guidoffset
;
int
guidoffset
;
int
fileoffset
;
int
fileoffset
;
MSFT_ImpInfo
impinfo
;
MSFT_ImpInfo
impinfo
;
WCHAR
stdole2tlb
[]
=
{
's'
,
't'
,
'd'
,
'o'
,
'l'
,
'e'
,
'2'
,
'.'
,
't'
,
'l'
,
'b'
,
0
};
static
const
WCHAR
stdole2tlb
[]
=
{
's'
,
't'
,
'd'
,
'o'
,
'l'
,
'e'
,
'2'
,
'.'
,
't'
,
'l'
,
'b'
,
0
};
foo
.
guid
=
IID_StdOle
;
foo
.
guid
=
IID_StdOle
;
foo
.
hreftype
=
2
;
foo
.
hreftype
=
2
;
...
...
dlls/shell32/shlfsbind.c
View file @
8fc374d8
...
@@ -62,7 +62,7 @@ static struct ICOM_VTABLE(IFileSystemBindData) sbvt =
...
@@ -62,7 +62,7 @@ static struct ICOM_VTABLE(IFileSystemBindData) sbvt =
IFileSystemBindData_fnSetFindData
,
IFileSystemBindData_fnSetFindData
,
};
};
static
WCHAR
wFileSystemBindData
[]
=
{
'F'
,
'i'
,
'l'
,
'e'
,
' '
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
' '
,
'B'
,
'i'
,
'n'
,
'd'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
static
const
WCHAR
wFileSystemBindData
[]
=
{
'F'
,
'i'
,
'l'
,
'e'
,
' '
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
' '
,
'B'
,
'i'
,
'n'
,
'd'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
HRESULT
WINAPI
IFileSystemBindData_Constructor
(
const
WIN32_FIND_DATAW
*
pfd
,
LPBC
*
ppV
)
HRESULT
WINAPI
IFileSystemBindData_Constructor
(
const
WIN32_FIND_DATAW
*
pfd
,
LPBC
*
ppV
)
{
{
...
@@ -93,7 +93,7 @@ HRESULT WINAPI IFileSystemBindData_Constructor(const WIN32_FIND_DATAW *pfd, LPBC
...
@@ -93,7 +93,7 @@ HRESULT WINAPI IFileSystemBindData_Constructor(const WIN32_FIND_DATAW *pfd, LPBC
bindOpts
.
grfMode
=
STGM_CREATE
;
bindOpts
.
grfMode
=
STGM_CREATE
;
bindOpts
.
dwTickCountDeadline
=
0
;
bindOpts
.
dwTickCountDeadline
=
0
;
IBindCtx_SetBindOptions
(
*
ppV
,
&
bindOpts
);
IBindCtx_SetBindOptions
(
*
ppV
,
&
bindOpts
);
IBindCtx_RegisterObjectParam
(
*
ppV
,
wFileSystemBindData
,
(
LPUNKNOWN
)
sb
);
IBindCtx_RegisterObjectParam
(
*
ppV
,
(
LPOLESTR
)
wFileSystemBindData
,
(
LPUNKNOWN
)
sb
);
IFileSystemBindData_Release
((
IFileSystemBindData
*
)
sb
);
IFileSystemBindData_Release
((
IFileSystemBindData
*
)
sb
);
}
}
...
@@ -113,7 +113,7 @@ HRESULT WINAPI FileSystemBindData_GetFindData(LPBC pbc, WIN32_FIND_DATAW *pfd)
...
@@ -113,7 +113,7 @@ HRESULT WINAPI FileSystemBindData_GetFindData(LPBC pbc, WIN32_FIND_DATAW *pfd)
if
(
!
pfd
)
if
(
!
pfd
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
ret
=
IBindCtx_GetObjectParam
(
pbc
,
wFileSystemBindData
,
&
pUnk
);
ret
=
IBindCtx_GetObjectParam
(
pbc
,
(
LPOLESTR
)
wFileSystemBindData
,
&
pUnk
);
if
(
SUCCEEDED
(
ret
))
if
(
SUCCEEDED
(
ret
))
{
{
ret
=
IUnknown_QueryInterface
(
pUnk
,
&
IID_IFileSystemBindData
,
(
LPVOID
*
)
&
pfsbd
);
ret
=
IUnknown_QueryInterface
(
pUnk
,
&
IID_IFileSystemBindData
,
(
LPVOID
*
)
&
pfsbd
);
...
@@ -135,7 +135,7 @@ HRESULT WINAPI FileSystemBindData_SetFindData(LPBC pbc, const WIN32_FIND_DATAW *
...
@@ -135,7 +135,7 @@ HRESULT WINAPI FileSystemBindData_SetFindData(LPBC pbc, const WIN32_FIND_DATAW *
TRACE
(
"%p, %p
\n
"
,
pbc
,
pfd
);
TRACE
(
"%p, %p
\n
"
,
pbc
,
pfd
);
ret
=
IBindCtx_GetObjectParam
(
pbc
,
wFileSystemBindData
,
&
pUnk
);
ret
=
IBindCtx_GetObjectParam
(
pbc
,
(
LPOLESTR
)
wFileSystemBindData
,
&
pUnk
);
if
(
SUCCEEDED
(
ret
))
if
(
SUCCEEDED
(
ret
))
{
{
ret
=
IUnknown_QueryInterface
(
pUnk
,
&
IID_IFileSystemBindData
,
(
LPVOID
*
)
&
pfsbd
);
ret
=
IUnknown_QueryInterface
(
pUnk
,
&
IID_IFileSystemBindData
,
(
LPVOID
*
)
&
pfsbd
);
...
...
dlls/shlwapi/ordinal.c
View file @
8fc374d8
...
@@ -2437,7 +2437,7 @@ typedef struct tagPOLICYDATA
...
@@ -2437,7 +2437,7 @@ typedef struct tagPOLICYDATA
#define SHELL_NO_POLICY 0xffffffff
#define SHELL_NO_POLICY 0xffffffff
/* default shell policy registry key */
/* default shell policy registry key */
static
WCHAR
strRegistryPolicyW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
static
const
WCHAR
strRegistryPolicyW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
'P'
,
'o'
,
'l'
,
'i'
,
'c'
,
'i'
,
'e'
,
's'
,
0
};
'\\'
,
'P'
,
'o'
,
'l'
,
'i'
,
'c'
,
'i'
,
'e'
,
's'
,
0
};
...
@@ -2461,7 +2461,7 @@ DWORD WINAPI SHGetRestriction(LPCWSTR lpSubKey, LPCWSTR lpSubName, LPCWSTR lpVal
...
@@ -2461,7 +2461,7 @@ DWORD WINAPI SHGetRestriction(LPCWSTR lpSubKey, LPCWSTR lpSubName, LPCWSTR lpVal
HKEY
hKey
;
HKEY
hKey
;
if
(
!
lpSubKey
)
if
(
!
lpSubKey
)
lpSubKey
=
(
LPCWSTR
)
strRegistryPolicyW
;
lpSubKey
=
strRegistryPolicyW
;
retval
=
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
lpSubKey
,
&
hKey
);
retval
=
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
lpSubKey
,
&
hKey
);
if
(
retval
!=
ERROR_SUCCESS
)
if
(
retval
!=
ERROR_SUCCESS
)
...
@@ -3887,7 +3887,7 @@ HRESULT WINAPI SHCoCreateInstanceAC(REFCLSID rclsid, LPUNKNOWN pUnkOuter,
...
@@ -3887,7 +3887,7 @@ HRESULT WINAPI SHCoCreateInstanceAC(REFCLSID rclsid, LPUNKNOWN pUnkOuter,
*/
*/
BOOL
WINAPI
SHSkipJunction
(
IBindCtx
*
pbc
,
const
CLSID
*
pclsid
)
BOOL
WINAPI
SHSkipJunction
(
IBindCtx
*
pbc
,
const
CLSID
*
pclsid
)
{
{
static
WCHAR
szSkipBinding
[]
=
{
'S'
,
'k'
,
'i'
,
'p'
,
' '
,
static
const
WCHAR
szSkipBinding
[]
=
{
'S'
,
'k'
,
'i'
,
'p'
,
' '
,
'B'
,
'i'
,
'n'
,
'd'
,
'i'
,
'n'
,
'g'
,
' '
,
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
'\0'
};
'B'
,
'i'
,
'n'
,
'd'
,
'i'
,
'n'
,
'g'
,
' '
,
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
'\0'
};
BOOL
bRet
=
FALSE
;
BOOL
bRet
=
FALSE
;
...
@@ -3895,7 +3895,7 @@ BOOL WINAPI SHSkipJunction(IBindCtx *pbc, const CLSID *pclsid)
...
@@ -3895,7 +3895,7 @@ BOOL WINAPI SHSkipJunction(IBindCtx *pbc, const CLSID *pclsid)
{
{
IUnknown
*
lpUnk
;
IUnknown
*
lpUnk
;
if
(
SUCCEEDED
(
IBindCtx_GetObjectParam
(
pbc
,
szSkipBinding
,
&
lpUnk
)))
if
(
SUCCEEDED
(
IBindCtx_GetObjectParam
(
pbc
,
(
LPOLESTR
)
szSkipBinding
,
&
lpUnk
)))
{
{
CLSID
clsid
;
CLSID
clsid
;
...
...
dlls/urlmon/umon.c
View file @
8fc374d8
...
@@ -477,7 +477,7 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
...
@@ -477,7 +477,7 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
if
(
SUCCEEDED
(
hres
))
{
if
(
SUCCEEDED
(
hres
))
{
TRACE
(
"Created dummy stream...
\n
"
);
TRACE
(
"Created dummy stream...
\n
"
);
hres
=
IBindCtx_GetObjectParam
(
pbc
,
BSCBHolder
,
(
IUnknown
**
)
&
pbscb
);
hres
=
IBindCtx_GetObjectParam
(
pbc
,
(
LPOLESTR
)
BSCBHolder
,
(
IUnknown
**
)
&
pbscb
);
if
(
SUCCEEDED
(
hres
))
{
if
(
SUCCEEDED
(
hres
))
{
TRACE
(
"Got IBindStatusCallback...
\n
"
);
TRACE
(
"Got IBindStatusCallback...
\n
"
);
...
@@ -1139,16 +1139,16 @@ HRESULT WINAPI RegisterBindStatusCallback(
...
@@ -1139,16 +1139,16 @@ HRESULT WINAPI RegisterBindStatusCallback(
if
(
pbc
==
NULL
||
pbsc
==
NULL
)
if
(
pbc
==
NULL
||
pbsc
==
NULL
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
if
(
SUCCEEDED
(
IBindCtx_GetObjectParam
(
pbc
,
BSCBHolder
,
(
IUnknown
**
)
&
prev
)))
if
(
SUCCEEDED
(
IBindCtx_GetObjectParam
(
pbc
,
(
LPOLESTR
)
BSCBHolder
,
(
IUnknown
**
)
&
prev
)))
{
{
IBindCtx_RevokeObjectParam
(
pbc
,
BSCBHolder
);
IBindCtx_RevokeObjectParam
(
pbc
,
(
LPOLESTR
)
BSCBHolder
);
if
(
ppbscPrevious
)
if
(
ppbscPrevious
)
*
ppbscPrevious
=
prev
;
*
ppbscPrevious
=
prev
;
else
else
IBindStatusCallback_Release
(
prev
);
IBindStatusCallback_Release
(
prev
);
}
}
return
IBindCtx_RegisterObjectParam
(
pbc
,
BSCBHolder
,
(
IUnknown
*
)
pbsc
);
return
IBindCtx_RegisterObjectParam
(
pbc
,
(
LPOLESTR
)
BSCBHolder
,
(
IUnknown
*
)
pbsc
);
}
}
/***********************************************************************
/***********************************************************************
...
@@ -1176,11 +1176,11 @@ HRESULT WINAPI RevokeBindStatusCallback(
...
@@ -1176,11 +1176,11 @@ HRESULT WINAPI RevokeBindStatusCallback(
if
(
pbc
==
NULL
||
pbsc
==
NULL
)
if
(
pbc
==
NULL
||
pbsc
==
NULL
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
if
(
SUCCEEDED
(
IBindCtx_GetObjectParam
(
pbc
,
BSCBHolder
,
(
IUnknown
**
)
&
callback
)))
if
(
SUCCEEDED
(
IBindCtx_GetObjectParam
(
pbc
,
(
LPOLESTR
)
BSCBHolder
,
(
IUnknown
**
)
&
callback
)))
{
{
if
(
callback
==
pbsc
)
if
(
callback
==
pbsc
)
{
{
IBindCtx_RevokeObjectParam
(
pbc
,
BSCBHolder
);
IBindCtx_RevokeObjectParam
(
pbc
,
(
LPOLESTR
)
BSCBHolder
);
hr
=
S_OK
;
hr
=
S_OK
;
}
}
IBindStatusCallback_Release
(
pbsc
);
IBindStatusCallback_Release
(
pbsc
);
...
...
dlls/wininet/http.c
View file @
8fc374d8
...
@@ -536,11 +536,12 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
...
@@ -536,11 +536,12 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
{
{
WCHAR
buf
[
MAXHOSTNAME
];
WCHAR
buf
[
MAXHOSTNAME
];
WCHAR
proxy
[
MAXHOSTNAME
+
15
];
/* 15 == "http://" + sizeof(port#) + ":/\0" */
WCHAR
proxy
[
MAXHOSTNAME
+
15
];
/* 15 == "http://" + sizeof(port#) + ":/\0" */
WCHAR
*
url
,
szNul
[]
=
{
0
};
WCHAR
*
url
;
static
const
WCHAR
szNul
[]
=
{
0
};
URL_COMPONENTSW
UrlComponents
;
URL_COMPONENTSW
UrlComponents
;
const
WCHAR
szHttp
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
0
},
szSlash
[]
=
{
'/'
,
0
}
;
static
const
WCHAR
szHttp
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
0
},
szSlash
[]
=
{
'/'
,
0
}
;
const
WCHAR
szFormat1
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
':'
,
'%'
,
'd'
,
0
};
static
const
WCHAR
szFormat1
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
':'
,
'%'
,
'd'
,
0
};
const
WCHAR
szFormat2
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
':'
,
'%'
,
'd'
,
0
};
static
const
WCHAR
szFormat2
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
':'
,
'%'
,
'd'
,
0
};
int
len
;
int
len
;
memset
(
&
UrlComponents
,
0
,
sizeof
UrlComponents
);
memset
(
&
UrlComponents
,
0
,
sizeof
UrlComponents
);
...
@@ -559,7 +560,7 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
...
@@ -559,7 +560,7 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
return
FALSE
;
return
FALSE
;
if
(
!
lpwhr
->
lpszPath
)
if
(
!
lpwhr
->
lpszPath
)
lpwhr
->
lpszPath
=
szNul
;
lpwhr
->
lpszPath
=
(
LPWSTR
)
szNul
;
TRACE
(
"server='%s' path='%s'
\n
"
,
TRACE
(
"server='%s' path='%s'
\n
"
,
debugstr_w
(
lpwhs
->
lpszServerName
),
debugstr_w
(
lpwhr
->
lpszPath
));
debugstr_w
(
lpwhs
->
lpszServerName
),
debugstr_w
(
lpwhr
->
lpszPath
));
/* for constant 15 see above */
/* for constant 15 see above */
...
...
dlls/wsock32/protocol.c
View file @
8fc374d8
...
@@ -79,7 +79,7 @@ static INT WSOCK32_EnterSingleProtocol( INT iProtocol,
...
@@ -79,7 +79,7 @@ static INT WSOCK32_EnterSingleProtocol( INT iProtocol,
LPDWORD
lpSize
,
BOOL
unicode
)
LPDWORD
lpSize
,
BOOL
unicode
)
{
DWORD
dwLength
=
0
,
dwOldSize
=
*
lpSize
;
{
DWORD
dwLength
=
0
,
dwOldSize
=
*
lpSize
;
INT
iAnz
=
1
;
INT
iAnz
=
1
;
WCHAR
*
lpProtName
=
NULL
;
const
WCHAR
*
lpProtName
=
NULL
;
*
lpSize
=
sizeof
(
PROTOCOL_INFOA
);
*
lpSize
=
sizeof
(
PROTOCOL_INFOA
);
switch
(
iProtocol
)
{
switch
(
iProtocol
)
{
...
...
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