[PATCH 5/5] wer: Add a stub for WerReportSubmit
Detlef Riekenberg
wine.dev at web.de
Mon Nov 1 17:08:49 CDT 2010
---
dlls/wer/main.c | 29 +++++++++++++++++++++++++++++
dlls/wer/wer.spec | 2 +-
2 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/dlls/wer/main.c b/dlls/wer/main.c
index a21414b..585ac91 100644
--- a/dlls/wer/main.c
+++ b/dlls/wer/main.c
@@ -1,5 +1,6 @@
/*
* Copyright 2010 Louis Lenders
+ * Copyright 2010 Detlef Riekenberg
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -290,3 +291,31 @@ HRESULT WINAPI WerReportSetParameter(HREPORT hreport, DWORD id, PCWSTR name, PCW
return E_NOTIMPL;
}
+
+/***********************************************************************
+ * WerReportSubmit (wer.@)
+ *
+ * Ask the user for permission and send the error report
+ * then kill or restart the application, when requested
+ *
+ * PARAMS
+ * hreport [i] error reporting handle to send
+ * consent [i] current transmit permission
+ * flags [i] flag to select dialog, transmission snd restart options
+ * presult [o] ptr, where the transmission result should be saved
+ *
+ * RETURNS
+ * Success: S_OK
+ * Failure: A HRESULT error code
+ *
+ */
+HRESULT WINAPI WerReportSubmit(HREPORT hreport, WER_CONSENT consent, DWORD flags, PWER_SUBMIT_RESULT presult)
+{
+ FIXME("(%p, %d, 0x%x, %p) :stub\n", hreport, consent, flags, presult);
+
+ if(!presult)
+ return E_INVALIDARG;
+
+ *presult = WerDisabled;
+ return E_NOTIMPL;
+}
diff --git a/dlls/wer/wer.spec b/dlls/wer/wer.spec
index 5e6fb52..4303c20 100644
--- a/dlls/wer/wer.spec
+++ b/dlls/wer/wer.spec
@@ -69,7 +69,7 @@
@ stdcall WerReportCreate(wstr long ptr ptr)
@ stdcall WerReportSetParameter(ptr long wstr wstr)
@ stub WerReportSetUIOption
-@ stub WerReportSubmit
+@ stdcall WerReportSubmit(ptr long long ptr)
@ stub WerpGetReportConsent
@ stub WerpIsDisabled
@ stub WerpOpenUserQueue
--
1.7.1
More information about the wine-patches
mailing list