8 Mar
2011
8 Mar
'11
2:31 p.m.
Alexander Scott-Johns <alexander.scott.johns(a)googlemail.com> writes:
+ if (file == INVALID_HANDLE_VALUE) + { + if (GetLastError() == ERROR_SHARING_VIOLATION) + { + WCHAR title[128]; + LoadStringW(WININET_hModule, IDS_CACHE_IN_USE, message, sizeof(message)/sizeof(*message)); + LoadStringW(WININET_hModule, IDS_WARNING, title, sizeof(title)/sizeof(*title)); + MessageBoxW(NULL, message, title, MB_OK); + }
I don't think you want to show message boxes, particularly not for such harmless errors. -- Alexandre Julliard julliard(a)winehq.org