Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/SDL2' into MorphOS
Browse files Browse the repository at this point in the history
  • Loading branch information
BeWorld2018 committed Jan 14, 2024
2 parents aff8231 + 55dcc1e commit 5741ee0
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down
2 changes: 1 addition & 1 deletion VisualC/Version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ BEGIN
VALUE "FileDescription", "SDL_net\0"
VALUE "FileVersion", "2, 3, 0, 0\0"
VALUE "InternalName", "SDL_net\0"
VALUE "LegalCopyright", "Copyright (C) 2023 Sam Lantinga\0"
VALUE "LegalCopyright", "Copyright (C) 2024 Sam Lantinga\0"
VALUE "OriginalFilename", "SDL_net.dll\0"
VALUE "ProductName", "Simple DirectMedia Layer\0"
VALUE "ProductVersion", "2, 3, 0, 0\0"
Expand Down
2 changes: 1 addition & 1 deletion examples/chat.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
CHAT: A chat client using the SDL example network and GUI libraries
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down
2 changes: 1 addition & 1 deletion examples/chat.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
CHAT: A chat client/server using the SDL example network library
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down
2 changes: 1 addition & 1 deletion examples/chatd.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
CHATD: A chat server using the SDL example network library
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down
2 changes: 1 addition & 1 deletion examples/showinterfaces.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
showinterfaces: a simple test program to show the network interfaces
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down
2 changes: 1 addition & 1 deletion include/SDL_net.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
SDL_net: An example cross-platform network library for use with SDL
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 2012 Simeon Maxein <smaxein@googlemail.com>
This software is provided 'as-is', without any express or implied
Expand Down
8 changes: 5 additions & 3 deletions src/SDLnet.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
SDL_net: An example cross-platform network library for use with SDL
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 2012 Simeon Maxein <smaxein@googlemail.com>
This software is provided 'as-is', without any express or implied
Expand Down Expand Up @@ -293,10 +293,12 @@ int SDLNet_GetLocalAddresses(IPaddress *addresses, int maxcount)
}

if ((dwRetVal = GetAdaptersInfo(pAdapterInfo, &ulOutBufLen)) == ERROR_BUFFER_OVERFLOW) {
pAdapterInfo = (IP_ADAPTER_INFO *) SDL_realloc(pAdapterInfo, ulOutBufLen);
if (pAdapterInfo == NULL) {
PIP_ADAPTER_INFO pAdapterInfoTmp = (PIP_ADAPTER_INFO) SDL_realloc(pAdapterInfo, ulOutBufLen);
if (pAdapterInfoTmp == NULL) {
SDL_free(pAdapterInfo);
return 0;
}
pAdapterInfo = pAdapterInfoTmp;
dwRetVal = GetAdaptersInfo(pAdapterInfo, &ulOutBufLen);
}

Expand Down
2 changes: 1 addition & 1 deletion src/SDLnetTCP.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
SDL_net: An example cross-platform network library for use with SDL
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down
2 changes: 1 addition & 1 deletion src/SDLnetUDP.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
SDL_net: An example cross-platform network library for use with SDL
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down
2 changes: 1 addition & 1 deletion src/SDLnetselect.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
SDL_net: An example cross-platform network library for use with SDL
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down
2 changes: 1 addition & 1 deletion src/SDLnetsys.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
SDL_net: An example cross-platform network library for use with SDL
Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
Copyright (C) 1997-2024 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down
2 changes: 1 addition & 1 deletion src/version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ BEGIN
VALUE "FileDescription", "SDL_net\0"
VALUE "FileVersion", "2, 3, 0, 0\0"
VALUE "InternalName", "SDL_net\0"
VALUE "LegalCopyright", "Copyright (C) 2023 Sam Lantinga\0"
VALUE "LegalCopyright", "Copyright (C) 2024 Sam Lantinga\0"
VALUE "OriginalFilename", "SDL_net.dll\0"
VALUE "ProductName", "Simple DirectMedia Layer\0"
VALUE "ProductVersion", "2, 3, 0, 0\0"
Expand Down

0 comments on commit 5741ee0

Please sign in to comment.