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
9ff202e6
Commit
9ff202e6
authored
Jan 18, 2002
by
Patrik Stridvall
Committed by
Alexandre Julliard
Jan 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some issues found by winapi_check.
parent
4d4a52c8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
30 deletions
+23
-30
crypt.c
dlls/advapi32/crypt.c
+1
-1
shellstring.c
dlls/shell32/shellstring.c
+14
-27
ordinal.c
dlls/shlwapi/ordinal.c
+2
-2
socket.c
dlls/winsock/socket.c
+3
-0
console.c
win32/console.c
+3
-0
No files found.
dlls/advapi32/crypt.c
View file @
9ff202e6
...
@@ -1057,7 +1057,7 @@ BOOL WINAPI CryptSetHashParam (HCRYPTHASH hHash, DWORD dwParam, BYTE *pbData, DW
...
@@ -1057,7 +1057,7 @@ BOOL WINAPI CryptSetHashParam (HCRYPTHASH hHash, DWORD dwParam, BYTE *pbData, DW
}
}
/******************************************************************************
/******************************************************************************
* Crypt
G
etKeyParam (ADVAPI32.@)
* Crypt
S
etKeyParam (ADVAPI32.@)
*/
*/
BOOL
WINAPI
CryptSetKeyParam
(
HCRYPTKEY
hKey
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
)
BOOL
WINAPI
CryptSetKeyParam
(
HCRYPTKEY
hKey
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
)
{
{
...
...
dlls/shell32/shellstring.c
View file @
9ff202e6
...
@@ -18,21 +18,15 @@ DEFAULT_DEBUG_CHANNEL(shell);
...
@@ -18,21 +18,15 @@ DEFAULT_DEBUG_CHANNEL(shell);
/************************* STRRET functions ****************************/
/************************* STRRET functions ****************************/
/*************************************************************************
/*
* StrRetToStrN [SHELL32.96]
*
* converts a STRRET to a normal string
*
* NOTES
* the pidl is for STRRET OFFSET
*
* ***** NOTE *****
* ***** NOTE *****
* Th
is routine is identical to StrRetToBufA
in dlls/shlwapi/string.c.
* Th
ese routines are identical to StrRetToBuf[AW]
in dlls/shlwapi/string.c.
*
It was
duplicated here because not every version of Shlwapi.dll exports
*
They were
duplicated here because not every version of Shlwapi.dll exports
* StrRetToBuf
A
. If you change one routine, change them both. YOU HAVE BEEN
* StrRetToBuf
[AW]
. If you change one routine, change them both. YOU HAVE BEEN
* WARNED.
* WARNED.
* ***** NOTE *****
* ***** NOTE *****
*/
*/
HRESULT
WINAPI
StrRetToStrNA
(
LPVOID
dest
,
DWORD
len
,
LPSTRRET
src
,
const
ITEMIDLIST
*
pidl
)
HRESULT
WINAPI
StrRetToStrNA
(
LPVOID
dest
,
DWORD
len
,
LPSTRRET
src
,
const
ITEMIDLIST
*
pidl
)
{
{
TRACE
(
"dest=0x%p len=0x%lx strret=0x%p pidl=%p stub
\n
"
,
dest
,
len
,
src
,
pidl
);
TRACE
(
"dest=0x%p len=0x%lx strret=0x%p pidl=%p stub
\n
"
,
dest
,
len
,
src
,
pidl
);
...
@@ -63,21 +57,7 @@ HRESULT WINAPI StrRetToStrNA (LPVOID dest, DWORD len, LPSTRRET src, const ITEMID
...
@@ -63,21 +57,7 @@ HRESULT WINAPI StrRetToStrNA (LPVOID dest, DWORD len, LPSTRRET src, const ITEMID
return
S_OK
;
return
S_OK
;
}
}
/*************************************************************************
/************************************************************************/
* StrRetToStrNW [SHELL32.96]
*
* converts a STRRET to a normal string
*
* NOTES
* the pidl is for STRRET OFFSET
*
* ***** NOTE *****
* This routine is identical to StrRetToBufW in dlls/shlwapi/string.c.
* It was duplicated here because not every version of Shlwapi.dll exports
* StrRetToBufW. If you change one routine, change them both. YOU HAVE BEEN
* WARNED.
* ***** NOTE *****
*/
HRESULT
WINAPI
StrRetToStrNW
(
LPVOID
dest1
,
DWORD
len
,
LPSTRRET
src
,
const
ITEMIDLIST
*
pidl
)
HRESULT
WINAPI
StrRetToStrNW
(
LPVOID
dest1
,
DWORD
len
,
LPSTRRET
src
,
const
ITEMIDLIST
*
pidl
)
{
{
...
@@ -115,8 +95,15 @@ HRESULT WINAPI StrRetToStrNW (LPVOID dest1, DWORD len, LPSTRRET src, const ITEMI
...
@@ -115,8 +95,15 @@ HRESULT WINAPI StrRetToStrNW (LPVOID dest1, DWORD len, LPSTRRET src, const ITEMI
return
S_OK
;
return
S_OK
;
}
}
/*************************************************************************/
/*************************************************************************
* StrRetToStrN [SHELL32.96]
*
* converts a STRRET to a normal string
*
* NOTES
* the pidl is for STRRET OFFSET
*/
HRESULT
WINAPI
StrRetToStrNAW
(
LPVOID
dest
,
DWORD
len
,
LPSTRRET
src
,
const
ITEMIDLIST
*
pidl
)
HRESULT
WINAPI
StrRetToStrNAW
(
LPVOID
dest
,
DWORD
len
,
LPSTRRET
src
,
const
ITEMIDLIST
*
pidl
)
{
{
if
(
SHELL_OsIsUnicode
())
if
(
SHELL_OsIsUnicode
())
...
...
dlls/shlwapi/ordinal.c
View file @
9ff202e6
...
@@ -1078,8 +1078,8 @@ DWORD WINAPI SHLWAPI_172 (
...
@@ -1078,8 +1078,8 @@ DWORD WINAPI SHLWAPI_172 (
*/
*/
DWORD
WINAPI
SHLWAPI_174
(
DWORD
WINAPI
SHLWAPI_174
(
IUnknown
*
p1
,
/* [in] OLE object */
IUnknown
*
p1
,
/* [in] OLE object */
LPVOID
*
p2
)
/* [out] ptr to result of either GetClassID
*/
LPVOID
*
p2
)
/* [out] ptr to result of either GetClassID
/*
or SetSite call. */
or SetSite call. */
{
{
DWORD
ret
,
aa
;
DWORD
ret
,
aa
;
...
...
dlls/winsock/socket.c
View file @
9ff202e6
...
@@ -3472,6 +3472,9 @@ INT WINAPI WSCDeinstallProvider(LPGUID lpProviderId, LPINT lpErrno)
...
@@ -3472,6 +3472,9 @@ INT WINAPI WSCDeinstallProvider(LPGUID lpProviderId, LPINT lpErrno)
}
}
/***********************************************************************
* WSAAccept (WS2_32.26)
*/
SOCKET
WINAPI
WSAAccept
(
SOCKET
s
,
struct
WS_sockaddr
*
addr
,
LPINT
addrlen
,
SOCKET
WINAPI
WSAAccept
(
SOCKET
s
,
struct
WS_sockaddr
*
addr
,
LPINT
addrlen
,
LPCONDITIONPROC
lpfnCondition
,
DWORD
dwCallbackData
)
LPCONDITIONPROC
lpfnCondition
,
DWORD
dwCallbackData
)
{
{
...
...
win32/console.c
View file @
9ff202e6
...
@@ -521,9 +521,12 @@ static BOOL WINAPI CONSOLE_DefaultHandler(DWORD dwCtrlType)
...
@@ -521,9 +521,12 @@ static BOOL WINAPI CONSOLE_DefaultHandler(DWORD dwCtrlType)
* Does not yet do any error checking, or set LastError if failed.
* Does not yet do any error checking, or set LastError if failed.
* This doesn't yet matter, since these handlers are not yet called...!
* This doesn't yet matter, since these handlers are not yet called...!
*/
*/
static
unsigned
int
console_ignore_ctrl_c
=
0
;
/* FIXME: this should be inherited somehow */
static
unsigned
int
console_ignore_ctrl_c
=
0
;
/* FIXME: this should be inherited somehow */
static
PHANDLER_ROUTINE
handlers
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
CONSOLE_DefaultHandler
};
static
PHANDLER_ROUTINE
handlers
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
CONSOLE_DefaultHandler
};
/*****************************************************************************/
BOOL
WINAPI
SetConsoleCtrlHandler
(
PHANDLER_ROUTINE
func
,
BOOL
add
)
BOOL
WINAPI
SetConsoleCtrlHandler
(
PHANDLER_ROUTINE
func
,
BOOL
add
)
{
{
int
alloc_loop
=
sizeof
(
handlers
)
/
sizeof
(
handlers
[
0
])
-
1
;
int
alloc_loop
=
sizeof
(
handlers
)
/
sizeof
(
handlers
[
0
])
-
1
;
...
...
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