summaryrefslogtreecommitdiff
path: root/frontends/windows/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/windows/gui.c')
-rw-r--r--frontends/windows/gui.c26
1 files changed, 21 insertions, 5 deletions
diff --git a/frontends/windows/gui.c b/frontends/windows/gui.c
index 490f23433..9a2c13b23 100644
--- a/frontends/windows/gui.c
+++ b/frontends/windows/gui.c
@@ -41,13 +41,15 @@
#include "windows/window.h"
#include "windows/gui.h"
-/**
- * win32 application instance handle.
- *
- * This handle is set in the main windows entry point.
- */
+/* exported global defined in windows/gui.h */
HINSTANCE hinst;
+/* exported global defined in windows/gui.h */
+char **G_resource_pathv;
+
+/* exported global defined in windows/gui.h */
+char *G_config_path;
+
static bool win32_quit = false;
struct dialog_list_entry {
@@ -180,3 +182,17 @@ nserror win32_warning(const char *warning, const char *detail)
}
+/* exported function documented in windows/gui.h */
+nserror
+win32_report_nserror(nserror error, const char *detail)
+{
+ size_t len = 1 +
+ strlen(messages_get_errorcode(error)) +
+ ((detail != 0) ? strlen(detail) : 0);
+ char message[len];
+ snprintf(message, len, messages_get_errorcode(error), detail);
+ MessageBox(NULL, message, "Warning", MB_ICONWARNING);
+
+ return NSERROR_OK;
+}
+