summaryrefslogtreecommitdiffstats
path: root/src/H5system.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-03-24 16:25:50 (GMT)
committerGitHub <noreply@github.com>2021-03-24 16:25:50 (GMT)
commitdf9abfe3f0695df3cc39103e3e7d6e9e8b0f56dd (patch)
tree24a9e510d661a6179d1a62083738d55dac97fcd6 /src/H5system.c
parent695a4e4f656c91e380eb34aaf8daabc897267a65 (diff)
downloadhdf5-df9abfe3f0695df3cc39103e3e7d6e9e8b0f56dd.zip
hdf5-df9abfe3f0695df3cc39103e3e7d6e9e8b0f56dd.tar.gz
hdf5-df9abfe3f0695df3cc39103e3e7d6e9e8b0f56dd.tar.bz2
Misc warning fixes (#495)
* Committing clang-format changes * Misc warning fixes from Visual Studio * Committing clang-format changes * Fixes warnings in swmr.c test * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5system.c')
-rw-r--r--src/H5system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5system.c b/src/H5system.c
index caf2fc3..144e0bc 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -573,8 +573,8 @@ Wgetlogin(void)
{
#ifdef H5_HAVE_WINSOCK2_H
- long bufferCount = WloginBuffer_count;
- if (GetUserName(Wlogin_buffer, &bufferCount) == 0)
+ DWORD bufferCount = WloginBuffer_count;
+ if (GetUserName(Wlogin_buffer, &bufferCount) != 0)
return (Wlogin_buffer);
else
#endif /* H5_HAVE_WINSOCK2_H */