io_length()
is returning 0
it allocates len
(0) + 1 bytes, the resulting buffer is too small for any reading, disaster ensuessize_t
or ulong
should be used if anyone's trying to refactor this io_length()
already returns a long, i don't know what's going onIOHANDLE
is non-null (edited)8425177088
bytes which is well within the boundaries of even a signed long// Handle describes an opened non-null IOHANDLE
io_seek(Handle, 0, IOSEEK_END);
long ExpectedSize = io_tell(Handle);
io_seek(Handle, 0, IOSEEK_START);
// ExpectedSize is 0
it
(lowercase) but would It
be more appropriate?io_tell
(which wraps ftell directly) has nothing between the caller and the libc that should narrow the number, and still has this issuefs_listdir_fileinfo
leverages WIN32_FIND_DATAW
on windows, contains a symlink flagCFsFileInfo
, the file info type used by FS_LISTDIR_CALLBACK_FILEINFO
which is the fn ptr signature that fs_listdir_fileinfo
uses if(m_Menus.IsInit())
{
char aBuff[256];
str_format(aBuff, std::size(aBuff), "%s [%d/%d]", CompCounter == 40 ? Localize("Why are you slowmo replaying to read this?") : Localize("Initializing components"), (CompCounter + 1), (int)ComponentCount());
m_Menus.RenderLoading(pLoadingDDNetCaption, aBuff, 1 + SkippedComps);
SkippedComps = 0;
}
operator bool()
while :; do DDNet-Server; done
fs_is_readable
and fs_is_symlink
(edited)fs_is_readable
work? as far as I know, you can never know if you can truly read/write a file unless you trygeneric_access_rights
on line 10 is saying to only check for read access, we can easily bind this enum & add another parameter if anyone cares (edited)GetLastError
on Windows or check errno
on UNIX after the operation already failed?ddnet_engine_shared.lib(std-391022a4250a8b9a.std.feb3b897-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_NtCreateFile referenced in function _ZN3std3sys7windows2fs20open_link_no_reparse17h9b3d5753800c4b4fE [D:\a\ddnet\ddnet\debug\game-server.vcxproj]
ddnet_engine_shared.lib(std-391022a4250a8b9a.std.feb3b897-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_RtlNtStatusToDosError referenced in function _ZN3std3sys7windows2fs20open_link_no_reparse17h9b3d5753800c4b4fE [D:\a\ddnet\ddnet\debug\game-server.vcxproj]
ddnet_engine_shared.lib(std-391022a4250a8b9a.std.feb3b897-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_NtReadFile referenced in function _ZN3std3sys7windows6handle6Handle16synchronous_read17h609a485d92162e8dE [D:\a\ddnet\ddnet\debug\game-server.vcxproj]
ddnet_engine_shared.lib(std-391022a4250a8b9a.std.feb3b897-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_NtWriteFile referenced in function _ZN3std3sys7windows6handle6Handle17synchronous_write17h5e143db420a86fa8E [D:\a\ddnet\ddnet\debug\game-server.vcxproj]
D:\a\ddnet\ddnet\debug\DDNet-Server.exe : fatal error LNK1120: 4 unresolved externals [D:\a\ddnet\ddnet\debug\game-server.vcxproj]
This is the third time a CI build failed on Windows like this in the last two daysGetLastError
on Windows or check errno
on UNIX after the operation already failed? View
resizes whether map preview is activeView
resizes whether map preview is active View
resizes whether map preview is active View
resizes whether map preview is active View
resizes whether map preview is active ssh chiller@zillyhuhn.com -t "cd /var/www/discord-irc/ && source ~/.nvm/nvm.sh && git pull && npm run build"
cargo update
if you want to update your dependencies. other people using your library will ignore your lockfilefn get_meta_list(nested_meta: &syn::MetaList) -> Result<Vec<(&syn::Path, &syn::Lit)>, TokenStream> {
fn get_meta_list(nested_meta: &syn::MetaList) -> Result<Vec<(&syn::Path, &syn::Lit)>, TokenStream> {
let mut list = vec![];
for v in &nested_meta.nested {
match v {
syn::NestedMeta::Meta(m) => {
if let syn::Meta::NameValue(value) = &m {
list.push((&value.path, &value.lit));
} else {
return Err(
quote_spanned! {m.span()=> compile_error!("Must be a named value.")}.into(),
);
}
}
x => {
return Err(
quote_spanned! {x.span()=> compile_error!("Invalid meta type.")}.into(),
);
}
}
}
Ok(list)
}
extern "C" void wrap___ZN4mlir19registerAllDialectsERNS_11MLIRContextE(mlir::MLIRContext & context) {
return registerAllDialects(context);
}
extern "C" void wrap___ZNK4mlir8Location4dumpEv(mlir::Location self) {
return mlir::Location::dump(self);
}
extern "C" void wrap___ZN4mlir7BuilderC1EPNS_11MLIRContextE(mlir::MLIRContext * context) {
new(context) mlir::Builder(context);
return;
}
the last methodsv_solo_server 1
sv_vote_kick_delay 10
Steps to reproduce
1. Vote a map
2. Let the vote fail
3. Attempt to kick a player
!image
Expected behavior
It should instead say "You can kick only your team member" because you can't kick others on a solo server.