wer: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4da92b60b6
commit
6776953a62
|
@ -2,5 +2,7 @@ MODULE = wer.dll
|
||||||
IMPORTLIB = wer
|
IMPORTLIB = wer
|
||||||
IMPORTS = advapi32
|
IMPORTS = advapi32
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
main.c
|
main.c
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
|
@ -27,7 +25,6 @@
|
||||||
#include "werapi.h"
|
#include "werapi.h"
|
||||||
#include "wine/heap.h"
|
#include "wine/heap.h"
|
||||||
#include "wine/list.h"
|
#include "wine/list.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(wer);
|
WINE_DEFAULT_DEBUG_CHANNEL(wer);
|
||||||
|
@ -97,7 +94,7 @@ HRESULT WINAPI WerAddExcludedApplication(PCWSTR exeName, BOOL allUsers)
|
||||||
if (!exeName || !exeName[0])
|
if (!exeName || !exeName[0])
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
bs = strrchrW(exeName, '\\');
|
bs = wcsrchr(exeName, '\\');
|
||||||
if (bs) {
|
if (bs) {
|
||||||
bs++; /* skip the backslash */
|
bs++; /* skip the backslash */
|
||||||
if (!bs[0]) {
|
if (!bs[0]) {
|
||||||
|
@ -138,7 +135,7 @@ HRESULT WINAPI WerRemoveExcludedApplication(PCWSTR exeName, BOOL allUsers)
|
||||||
if (!exeName || !exeName[0])
|
if (!exeName || !exeName[0])
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
bs = strrchrW(exeName, '\\');
|
bs = wcsrchr(exeName, '\\');
|
||||||
if (bs) {
|
if (bs) {
|
||||||
bs++; /* skip the backslash */
|
bs++; /* skip the backslash */
|
||||||
if (!bs[0]) {
|
if (!bs[0]) {
|
||||||
|
|
Loading…
Reference in New Issue