diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c index 241ea2f5348..cffa3405445 100644 --- a/dlls/mpr/wnet.c +++ b/dlls/mpr/wnet.c @@ -1949,7 +1949,7 @@ DWORD WINAPI WNetGetUniversalNameW ( LPCWSTR lpLocalPath, DWORD dwInfoLevel, break; } - SetLastError(err); + if (err != WN_NO_ERROR) SetLastError(err); return err; }