~ubuntu-branches/ubuntu/precise/xorg-server/precise-updates

« back to all changes in this revision

Viewing changes to hw/xwin/InitOutput.c

  • Committer: Package Import Robot
  • Author(s): Christopher James Halse Rogers
  • Date: 2012-01-23 16:09:29 UTC
  • mfrom: (1.1.46) (0.11.34 sid)
  • Revision ID: package-import@ubuntu.com-20120123160929-k4xdb9b7xeesiukp
Tags: 2:1.11.3-0ubuntu8
* debian/patches/224_return_BadWindow_not_BadMatch.diff:
  - Fix the error values of a whole slew of window-related calls.
    Fixes some gnome-settings-daemon aborts in XLib (LP: #903973)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
#endif
50
50
#ifdef RELOCATE_PROJECTROOT
51
51
#include <shlobj.h>
52
 
typedef HRESULT (*SHGETFOLDERPATHPROC)(
 
52
typedef WINAPI HRESULT (*SHGETFOLDERPATHPROC)(
53
53
    HWND hwndOwner,
54
54
    int nFolder,
55
55
    HANDLE hToken,
191
191
 
192
192
/* See Porting Layer Definition - p. 57 */
193
193
void
194
 
ddxGiveUp (void)
 
194
ddxGiveUp (enum ExitCode error)
195
195
{
196
196
  int           i;
197
197
 
228
228
    g_pszLogFile = LogInit (g_pszLogFile, NULL);
229
229
    g_fLogInited = TRUE;
230
230
  }  
231
 
  LogClose ();
 
231
  LogClose (error);
232
232
 
233
233
  /*
234
234
   * At this point we aren't creating any new screens, so
258
258
 
259
259
/* See Porting Layer Definition - p. 57 */
260
260
void
261
 
AbortDDX (void)
 
261
AbortDDX (enum ExitCode error)
262
262
{
263
263
#if CYGDEBUG
264
264
  winDebug ("AbortDDX\n");
265
265
#endif
266
 
  ddxGiveUp ();
 
266
  ddxGiveUp (error);
267
267
}
268
268
 
269
269
#ifdef __CYGWIN__
901
901
    g_pszLogFile = LogInit (g_pszLogFile, NULL);
902
902
    g_fLogInited = TRUE;
903
903
  }  
904
 
  LogClose ();
 
904
  LogClose (EXIT_NO_ERROR);
905
905
 
906
906
  /* Notify user where UseMsg text can be found.*/
907
907
  if (!g_fNoHelpMessageBox)