Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
97d5e163
Commit
97d5e163
authored
Mar 15, 2004
by
Chris Morgan
Committed by
Alexandre Julliard
Mar 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Message box to suggest the user not run wine as root.
parent
bc2520b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
main.c
programs/winecfg/main.c
+7
-0
No files found.
programs/winecfg/main.c
View file @
97d5e163
...
@@ -29,6 +29,9 @@
...
@@ -29,6 +29,9 @@
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <wine/debug.h>
#include <wine/debug.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "properties.h"
#include "properties.h"
#include "resource.h"
#include "resource.h"
...
@@ -204,6 +207,10 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrev, LPSTR szCmdLine, int nShow)
...
@@ -204,6 +207,10 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrev, LPSTR szCmdLine, int nShow)
ExitProcess
(
1
);
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
* The next 3 lines should be all that is needed
* for the Wine Configuration property sheet
* for the Wine Configuration property sheet
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment