Changeset 84636 in vbox
- Timestamp:
- Jun 2, 2020 12:34:44 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138384
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
r84586 r84636 56 56 #include <iprt/err.h> 57 57 #include <iprt/file.h> 58 #include <iprt/path.h> 58 59 #include <iprt/string.h> 59 60 #include <iprt/thread.h> … … 65 66 #define MILLIS_PER_INCH (25.4) 66 67 #define DEFAULT_DPI (96.0) 67 68 68 69 69 /** Maximum number of supported screens. DRM and X11 both limit this to 32. */ … … 156 156 static X11CONTEXT x11Context; 157 157 158 #define MAX_MODE_NAME_LEN 64 159 #define MAX_COMMAND_LINE_LEN 512 160 #define MAX_MODE_LINE_LEN 512 158 #define BUFFER_SIZE 1024 161 159 162 160 struct RANDROUTPUT … … 690 688 char* argv[] = {NULL}; 691 689 char* env[] = {NULL}; 692 execve("./VBoxDRMClient", argv, env); 693 perror("Could not start the DRM Client."); 690 char szDRMClientPath[BUFFER_SIZE]; 691 RTPathExecDir(szDRMClientPath, BUFFER_SIZE); 692 RTPathAppend(szDRMClientPath, BUFFER_SIZE, "VBoxDRMClient"); 693 int rc = execve(szDRMClientPath, argv, env); 694 if (rc == -1) 695 VBClLogFatalError("execve for % returns the following error %d %s\n", szDRMClientPath, errno, strerror(errno)); 696 /* This is reached only when execve fails. */ 694 697 return false; 695 698 }
Note:
See TracChangeset
for help on using the changeset viewer.