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
22796640
Commit
22796640
authored
Sep 26, 2007
by
Konstantin Kondratyuk
Committed by
Alexandre Julliard
Sep 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpr: Correct usage of dwScope and dwEnumScopes.
parent
33345141
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
wnet.c
dlls/mpr/wnet.c
+10
-4
npapi.h
include/npapi.h
+1
-0
No files found.
dlls/mpr/wnet.c
View file @
22796640
...
@@ -731,7 +731,7 @@ DWORD WINAPI WNetOpenEnumW( DWORD dwScope, DWORD dwType, DWORD dwUsage,
...
@@ -731,7 +731,7 @@ DWORD WINAPI WNetOpenEnumW( DWORD dwScope, DWORD dwType, DWORD dwUsage,
if
(
index
!=
BAD_PROVIDER_INDEX
)
if
(
index
!=
BAD_PROVIDER_INDEX
)
{
{
if
(
providerTable
->
table
[
index
].
openEnum
&&
if
(
providerTable
->
table
[
index
].
openEnum
&&
providerTable
->
table
[
index
].
dwEnumScopes
&
dwScope
)
providerTable
->
table
[
index
].
dwEnumScopes
&
WNNC_ENUM_GLOBAL
)
{
{
HANDLE
handle
;
HANDLE
handle
;
...
@@ -964,6 +964,7 @@ static DWORD _globalEnumeratorAdvance(PWNetEnumerator enumerator)
...
@@ -964,6 +964,7 @@ static DWORD _globalEnumeratorAdvance(PWNetEnumerator enumerator)
if
(
enumerator
->
providerDone
)
if
(
enumerator
->
providerDone
)
{
{
DWORD
dwEnum
=
0
;
enumerator
->
providerDone
=
FALSE
;
enumerator
->
providerDone
=
FALSE
;
if
(
enumerator
->
handle
)
if
(
enumerator
->
handle
)
{
{
...
@@ -972,10 +973,15 @@ static DWORD _globalEnumeratorAdvance(PWNetEnumerator enumerator)
...
@@ -972,10 +973,15 @@ static DWORD _globalEnumeratorAdvance(PWNetEnumerator enumerator)
enumerator
->
handle
=
NULL
;
enumerator
->
handle
=
NULL
;
enumerator
->
providerIndex
++
;
enumerator
->
providerIndex
++
;
}
}
if
(
enumerator
->
dwScope
==
RESOURCE_CONNECTED
)
dwEnum
=
WNNC_ENUM_LOCAL
;
else
if
(
enumerator
->
dwScope
==
RESOURCE_GLOBALNET
)
dwEnum
=
WNNC_ENUM_GLOBAL
;
else
if
(
enumerator
->
dwScope
==
RESOURCE_CONTEXT
)
dwEnum
=
WNNC_ENUM_CONTEXT
;
for
(;
enumerator
->
providerIndex
<
providerTable
->
numProviders
&&
for
(;
enumerator
->
providerIndex
<
providerTable
->
numProviders
&&
!
(
enumerator
->
dwScope
&
providerTable
->
table
!
(
providerTable
->
table
[
enumerator
->
providerIndex
].
dwEnumScopes
[
enumerator
->
providerIndex
].
dwEnumScopes
);
&
dwEnum
);
enumerator
->
providerIndex
++
)
enumerator
->
providerIndex
++
)
;
;
}
}
return
enumerator
->
providerIndex
<
providerTable
->
numProviders
?
return
enumerator
->
providerIndex
<
providerTable
->
numProviders
?
...
...
include/npapi.h
View file @
22796640
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
#define WNNC_ENUMERATION 0x0000000b
#define WNNC_ENUMERATION 0x0000000b
#define WNNC_ENUM_GLOBAL 0x00000001
#define WNNC_ENUM_GLOBAL 0x00000001
#define WNNC_ENUM_LOCAL 0x00000002
#define WNNC_ENUM_LOCAL 0x00000002
#define WNNC_ENUM_CONTEXT 0x00000004
#define WNNC_START 0x0000000c
#define WNNC_START 0x0000000c
#define WNNC_WAIT_FOR_START 0x00000001
#define WNNC_WAIT_FOR_START 0x00000001
...
...
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