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
d8f9c1c0
Commit
d8f9c1c0
authored
Jan 02, 2004
by
Steven Edwards
Committed by
Alexandre Julliard
Jan 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiling netapi32 on MSVC with PSDK headers.
parent
092f7dd3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
nbcmdqueue.c
dlls/netapi32/nbcmdqueue.c
+2
-2
nbt.c
dlls/netapi32/nbt.c
+1
-1
netbios.h
dlls/netapi32/netbios.h
+1
-1
nb30.h
include/nb30.h
+6
-2
No files found.
dlls/netapi32/nbcmdqueue.c
View file @
d8f9c1c0
...
...
@@ -27,8 +27,8 @@ struct NBCmdQueue
PNCB
head
;
};
#define CANCEL_EVENT_PTR(ncb) (PHANDLE)((ncb)->ncb_reserve
d
)
#define NEXT_PTR(ncb) (PNCB *)((ncb)->ncb_reserve
d
+ sizeof(HANDLE))
#define CANCEL_EVENT_PTR(ncb) (PHANDLE)((ncb)->ncb_reserve)
#define NEXT_PTR(ncb) (PNCB *)((ncb)->ncb_reserve + sizeof(HANDLE))
/* The reserved area of an ncb will be used for the following data:
* - a cancelled flag (BOOL, 4 bytes??)
...
...
dlls/netapi32/nbt.c
View file @
d8f9c1c0
...
...
@@ -838,7 +838,7 @@ static UCHAR NetBTAstat(void *adapt, PNCB ncb)
astat
->
adapter_type
=
0xff
;
else
astat
->
adapter_type
=
0xfe
;
/* for Ethernet */
astat
->
max_sess_pktsize
=
0xffff
;
astat
->
max_sess_pkt
_
size
=
0xffff
;
astat
->
xmit_success
=
adapter
->
xmit_success
;
astat
->
recv_success
=
adapter
->
recv_success
;
}
...
...
dlls/netapi32/netbios.h
View file @
d8f9c1c0
...
...
@@ -132,7 +132,7 @@ typedef void (*NetBIOSCleanup)(void);
* some calls (recv) will block indefinitely, so a reset, shutdown, etc. will
* never occur.
*/
#define NCB_CANCELLED(pncb) *(PBOOL)((pncb)->ncb_reserve
d
)
#define NCB_CANCELLED(pncb) *(PBOOL)((pncb)->ncb_reserve)
typedef
UCHAR
(
*
NetBIOSAstat
)(
void
*
adapter
,
PNCB
ncb
);
typedef
UCHAR
(
*
NetBIOSFindName
)(
void
*
adapter
,
PNCB
ncb
);
...
...
include/nb30.h
View file @
d8f9c1c0
...
...
@@ -70,7 +70,11 @@ typedef struct _NCB
VOID
(
CALLBACK
*
ncb_post
)(
struct
_NCB
*
);
UCHAR
ncb_lana_num
;
UCHAR
ncb_cmd_cplt
;
UCHAR
ncb_reserved
[
10
];
#ifdef _WIN64
UCHAR
ncb_reserve
[
18
];
#else
UCHAR
ncb_reserve
[
10
];
#endif
HANDLE
ncb_event
;
}
NCB
,
*
PNCB
;
...
...
@@ -101,7 +105,7 @@ typedef struct _ADAPTER_STATUS
WORD
pending_sess
;
WORD
max_cfg_sess
;
WORD
max_sess
;
WORD
max_sess_pktsize
;
WORD
max_sess_pkt
_
size
;
WORD
name_count
;
}
ADAPTER_STATUS
,
*
PADAPTER_STATUS
;
...
...
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