~ubuntu-branches/ubuntu/oneiric/gimp/oneiric-updates

« back to all changes in this revision

Viewing changes to libgimp/gimp.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2010-11-18 17:25:42 UTC
  • mfrom: (1.1.24) (0.4.7 sid)
  • Revision ID: package-import@ubuntu.com-20101118172542-dq82nx82sjgv0o0u
Tags: 2.6.11-1ubuntu1
* Resync on Debian
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch:
   - updated some strings for ubuntu
* debian/control: updated description
* debian/rules:
    - updated translation templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
#if defined(G_OS_WIN32) || defined(G_WITH_CYGWIN)
87
87
#  define STRICT
 
88
#  define _WIN32_WINNT 0x0601
88
89
#  include <windows.h>
89
90
#  undef RGB
90
91
#  define USE_WIN32_SHM 1
237
238
#ifdef G_OS_WIN32
238
239
  gint i, j, k;
239
240
 
 
241
  /* Reduce risks */
 
242
  {
 
243
    typedef BOOL (WINAPI *t_SetDllDirectoryA) (LPCSTR lpPathName);
 
244
    t_SetDllDirectoryA p_SetDllDirectoryA;
 
245
 
 
246
    p_SetDllDirectoryA = GetProcAddress (GetModuleHandle ("kernel32.dll"),
 
247
                                         "SetDllDirectoryA");
 
248
    if (p_SetDllDirectoryA)
 
249
      (*p_SetDllDirectoryA) ("");
 
250
  }
 
251
#ifndef _WIN64
 
252
  {
 
253
    typedef BOOL (WINAPI *t_SetProcessDEPPolicy) (DWORD dwFlags);
 
254
    t_SetProcessDEPPolicy p_SetProcessDEPPolicy;
 
255
 
 
256
    p_SetProcessDEPPolicy = GetProcAddress (GetModuleHandle ("kernel32.dll"),
 
257
                                            "SetProcessDEPPolicy");
 
258
    if (p_SetProcessDEPPolicy)
 
259
      (*p_SetProcessDEPPolicy) (PROCESS_DEP_ENABLE|PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION);
 
260
  }
 
261
#endif
 
262
 
240
263
  /* Check for exe file name with spaces in the path having been split up
241
264
   * by buggy NT C runtime, or something. I don't know why this happens
242
265
   * on NT (including w2k), but not on w95/98.