Skip to content

Commit

Permalink
Fix a naming conflict in msquic.h (microsoft#4060)
Browse files Browse the repository at this point in the history
* fix it

* remove submodule update
  • Loading branch information
csujedihy authored Jan 18, 2024
1 parent e36d0fa commit 0ffbb9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/bin/winkernel/nmrprovider.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ MSQUIC_NMR_PROVIDER NmrProvider;
const MSQUIC_NMR_DISPATCH MsQuicNmrDispatch = {
.Version = 0,
.Reserved = 0,
.MsQuicOpenVersion = MsQuicOpenVersion,
.MsQuicClose = MsQuicClose,
.OpenVersion = MsQuicOpenVersion,
.Close = MsQuicClose,
};

NTSTATUS
Expand Down
4 changes: 2 additions & 2 deletions src/inc/msquic.h
Original file line number Diff line number Diff line change
Expand Up @@ -1680,8 +1680,8 @@ DECLSPEC_SELECTANY GUID MSQUIC_MODULE_ID = {
typedef struct MSQUIC_NMR_DISPATCH {
uint16_t Version;
uint16_t Reserved;
MsQuicOpenVersionFn MsQuicOpenVersion;
MsQuicCloseFn MsQuicClose;
MsQuicOpenVersionFn OpenVersion;
MsQuicCloseFn Close;
} MSQUIC_NMR_DISPATCH;

//
Expand Down
4 changes: 2 additions & 2 deletions src/test/bin/winkernel/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ QuicTestCtlInitialize(

MsQuic =
new (std::nothrow) MsQuicApi(
QUIC_GET_DISPATCH(NmrClient)->MsQuicOpenVersion,
QUIC_GET_DISPATCH(NmrClient)->MsQuicClose);
QUIC_GET_DISPATCH(NmrClient)->OpenVersion,
QUIC_GET_DISPATCH(NmrClient)->Close);
if (!MsQuic) {
goto Error;
}
Expand Down

0 comments on commit 0ffbb9b

Please sign in to comment.