]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/window.c
Make some static text in GTK dialogs selectable.
[PuTTY.git] / windows / window.c
index db42634731f6258372752890bf6781f699ddbe08..fc51e57fb2b5fbbe95fbdc37d76831dd7cee2e82 100644 (file)
@@ -395,15 +395,16 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
      * Protect our process
      */
     {
-      char *error = NULL;
-
-      if (! setprocessacl(error)) {
-       /* FIXME: prepare to stuff this into event log somehow */
-       MessageBox(NULL, "Process protection",
-                  error, MB_OK | MB_ICONEXCLAMATION);
-      }
-      sfree(error);
-
+#ifndef UNPROTECT
+        char *error = NULL;
+        if (! setprocessacl(error)) {
+            char *message = dupprintf("Could not restrict process ACL: %s",
+                                      error);
+           logevent(NULL, message);
+            sfree(message);
+           sfree(error);
+       }
+#endif
     }
     /*
      * Process the command line.