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
ed966469
Commit
ed966469
authored
Mar 14, 2008
by
Marcus Meissner
Committed by
Alexandre Julliard
Mar 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Split out NULL ptr and function ptr check.
parent
05a8974e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
internet.c
dlls/wininet/internet.c
+8
-3
No files found.
dlls/wininet/internet.c
View file @
ed966469
...
...
@@ -1704,11 +1704,16 @@ BOOL WINAPI InternetWriteFile(HINTERNET hFile, LPCVOID lpBuffer,
TRACE
(
"(%p %p %d %p)
\n
"
,
hFile
,
lpBuffer
,
dwNumOfBytesToWrite
,
lpdwNumOfBytesWritten
);
lpwh
=
WININET_GetObject
(
hFile
);
if
(
!
lpwh
)
{
WARN
(
"Invalid handle
\n
"
);
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
lpwh
&&
lpwh
->
vtbl
->
WriteFile
)
{
if
(
lpwh
->
vtbl
->
WriteFile
)
{
retval
=
lpwh
->
vtbl
->
WriteFile
(
lpwh
,
lpBuffer
,
dwNumOfBytesToWrite
,
lpdwNumOfBytesWritten
);
}
else
{
WARN
(
"
Invalid handle
\n
"
);
WARN
(
"
No Writefile method.
\n
"
);
SetLastError
(
ERROR_INVALID_HANDLE
);
retval
=
FALSE
;
}
...
...
@@ -1848,7 +1853,7 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
TRACE
(
"(%p, 0x%08x, %p, %p)
\n
"
,
hInternet
,
dwOption
,
lpBuffer
,
lpdwBufferLength
);
lpwhh
=
(
LPWININETHANDLEHEADER
)
WININET_GetObject
(
hInternet
);
lpwhh
=
WININET_GetObject
(
hInternet
);
switch
(
dwOption
)
{
...
...
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