Commit 97d5e163 authored by Chris Morgan's avatar Chris Morgan Committed by Alexandre Julliard

Message box to suggest the user not run wine as root.

parent bc2520b3
......@@ -29,6 +29,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <wine/debug.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "properties.h"
#include "resource.h"
......@@ -204,6 +207,10 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrev, LPSTR szCmdLine, int nShow)
ExitProcess(1);
}
/* is the user running as root? */
if(getuid() == 0)
MessageBox(NULL, "It is not advisable to run wine as root. Doing so may compromise the security of your computer. Please run wine as a normal user.", "Warning", MB_OK);
/*
* The next 3 lines should be all that is needed
* for the Wine Configuration property sheet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment