kernel32/volume: Don't modify the last error in GetVolumeInformation
Alexandre Julliard
julliard at winehq.org
Tue May 29 12:07:21 CDT 2012
Alexandre Goujon <ale.goujon at gmail.com> writes:
> @@ -729,6 +731,8 @@ BOOL WINAPI GetVolumeInformationW( LPCWSTR root, LPWSTR label, DWORD label_len,
> }
> else
> {
> + /* At this point, last error is ERROR_NOT_SUPPORTED. Restoring the previous one */
> + SetLastError(lastError);
You should never need to do that sort of thing, there are no guarantees
about last error on success.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list