Vitaly Perov : mpr: Don't set LastError if no error occured.
Alexandre Julliard
julliard at winehq.org
Tue Jun 2 08:44:31 CDT 2009
Module: wine
Branch: master
Commit: d7098d0f4fa829ab14fda359284aaecab506533a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d7098d0f4fa829ab14fda359284aaecab506533a
Author: Vitaly Perov <vitperov at etersoft.ru>
Date: Mon Jun 1 20:57:16 2009 +0400
mpr: Don't set LastError if no error occured.
---
dlls/mpr/wnet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c
index 241ea2f..cffa340 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;
}
More information about the wine-cvs
mailing list