X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fwindows%2Fstat.cpp;fp=source%2Ffs%2Fwindows%2Fstat.cpp;h=36f28a0de3413ba489fbfea524ed9cad9ee999b6;hp=ac9e0c977ac537fcd97bb9230b794ba7f334cc8a;hb=30ce69b5cb05712c3a4903b0f397912119c4f1f9;hpb=122846f0881673770d88eff7d925ecf25c01b62e diff --git a/source/fs/windows/stat.cpp b/source/fs/windows/stat.cpp index ac9e0c9..36f28a0 100644 --- a/source/fs/windows/stat.cpp +++ b/source/fs/windows/stat.cpp @@ -50,20 +50,20 @@ Stat::Private::Private(const Private &other): Stat::Private::~Private() { - if(owner_id) + if(owner_id!=INVALID_UID) HeapFree(GetProcessHeap(), 0, owner_id); - if(group_id) + if(group_id!=INVALID_GID) HeapFree(GetProcessHeap(), 0, group_id); } void Stat::Private::fill_owner_info(Stat::OwnerInfo &result) { - if(owner_id) + if(owner_id!=INVALID_UID) result.owner = get_account_name(owner_id); else result.owner = "None"; - if(group_id) + if(group_id!=INVALID_GID) result.group = get_account_name(group_id); else result.group = "None";