X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Ffs%2Fwindows%2Fstat.cpp;h=36f28a0de3413ba489fbfea524ed9cad9ee999b6;hb=9b38e20254913629a0db40e8eb8e1c42e1728e41;hp=ac9e0c977ac537fcd97bb9230b794ba7f334cc8a;hpb=2c63690c6315004c1d5e48b84ac1b75d796ea7b2;p=libs%2Fcore.git 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";