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
89ab83db
Commit
89ab83db
authored
May 11, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
May 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Get rid of no longer needed values in Binding object.
parent
cd30018d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
binding.c
dlls/urlmon/binding.c
+0
-39
No files found.
dlls/urlmon/binding.c
View file @
89ab83db
...
@@ -100,18 +100,14 @@ struct Binding {
...
@@ -100,18 +100,14 @@ struct Binding {
LPWSTR
url
;
LPWSTR
url
;
IID
iid
;
IID
iid
;
BOOL
report_mime
;
BOOL
report_mime
;
DWORD
continue_call
;
DWORD
state
;
DWORD
state
;
HRESULT
hres
;
HRESULT
hres
;
download_state_t
download_state
;
download_state_t
download_state
;
IUnknown
*
obj
;
IUnknown
*
obj
;
IMoniker
*
mon
;
IMoniker
*
mon
;
IBindCtx
*
bctx
;
IBindCtx
*
bctx
;
DWORD
apartment_thread
;
HWND
notif_hwnd
;
HWND
notif_hwnd
;
task_header_t
*
task_queue_head
,
*
task_queue_tail
;
CRITICAL_SECTION
section
;
CRITICAL_SECTION
section
;
};
};
...
@@ -127,24 +123,6 @@ struct Binding {
...
@@ -127,24 +123,6 @@ struct Binding {
#define WM_MK_CONTINUE (WM_USER+101)
#define WM_MK_CONTINUE (WM_USER+101)
#define WM_MK_RELEASE (WM_USER+102)
#define WM_MK_RELEASE (WM_USER+102)
static
task_header_t
*
pop_task
(
Binding
*
binding
)
{
task_header_t
*
ret
;
EnterCriticalSection
(
&
binding
->
section
);
ret
=
binding
->
task_queue_head
;
if
(
ret
)
{
binding
->
task_queue_head
=
ret
->
next
;
if
(
!
binding
->
task_queue_head
)
binding
->
task_queue_tail
=
NULL
;
}
LeaveCriticalSection
(
&
binding
->
section
);
return
ret
;
}
static
void
fill_stgmed_buffer
(
stgmed_buf_t
*
buf
)
static
void
fill_stgmed_buffer
(
stgmed_buf_t
*
buf
)
{
{
DWORD
read
=
0
;
DWORD
read
=
0
;
...
@@ -162,19 +140,6 @@ static void fill_stgmed_buffer(stgmed_buf_t *buf)
...
@@ -162,19 +140,6 @@ static void fill_stgmed_buffer(stgmed_buf_t *buf)
static
LRESULT
WINAPI
notif_wnd_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
WINAPI
notif_wnd_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
switch
(
msg
)
{
switch
(
msg
)
{
case
WM_MK_CONTINUE
:
{
Binding
*
binding
=
(
Binding
*
)
lParam
;
task_header_t
*
task
;
while
((
task
=
pop_task
(
binding
)))
{
binding
->
continue_call
++
;
task
->
proc
(
binding
,
task
);
binding
->
continue_call
--
;
}
IBinding_Release
(
BINDING
(
binding
));
return
0
;
}
case
WM_MK_CONTINUE2
:
case
WM_MK_CONTINUE2
:
handle_bindprot_task
((
void
*
)
lParam
);
handle_bindprot_task
((
void
*
)
lParam
);
return
0
;
return
0
;
...
@@ -1162,9 +1127,6 @@ static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progres
...
@@ -1162,9 +1127,6 @@ static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progres
if
(
This
->
download_state
==
END_DOWNLOAD
||
(
This
->
state
&
BINDING_STOPPED
))
if
(
This
->
download_state
==
END_DOWNLOAD
||
(
This
->
state
&
BINDING_STOPPED
))
return
;
return
;
if
(
GetCurrentThreadId
()
!=
This
->
apartment_thread
)
FIXME
(
"called from worker thread
\n
"
);
if
(
This
->
report_mime
)
if
(
This
->
report_mime
)
mime_available
(
This
,
NULL
,
TRUE
);
mime_available
(
This
,
NULL
,
TRUE
);
...
@@ -1513,7 +1475,6 @@ static HRESULT Binding_Create(IMoniker *mon, Binding *binding_ctx, LPCWSTR url,
...
@@ -1513,7 +1475,6 @@ static HRESULT Binding_Create(IMoniker *mon, Binding *binding_ctx, LPCWSTR url,
ret
->
to_object
=
to_obj
;
ret
->
to_object
=
to_obj
;
ret
->
iid
=
*
riid
;
ret
->
iid
=
*
riid
;
ret
->
apartment_thread
=
GetCurrentThreadId
();
ret
->
notif_hwnd
=
get_notif_hwnd
();
ret
->
notif_hwnd
=
get_notif_hwnd
();
ret
->
report_mime
=
!
binding_ctx
;
ret
->
report_mime
=
!
binding_ctx
;
ret
->
download_state
=
BEFORE_DOWNLOAD
;
ret
->
download_state
=
BEFORE_DOWNLOAD
;
...
...
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