Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #404
Closed
Open
Issue created Aug 02, 2015 by Sven Strickroth@mrtuxOwner

GetOpenFileName does not work in Cygwin

By ake.rehn... on April 25, 2010 14:21 (imported from Google Code)


What steps will reproduce the problem?

  1. Start insight
  2. Choose File->Open

or

  1. Compile this with $ gcc testdlg.c -mwindows -o testdlg.exe
    #include <windows.h>
    #include <commdlg.h>
    #include <stdio.h>

main ()
{
OPENFILENAMEW ofn;
WCHAR file[100];
char s[256];
int result;

ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.nMaxFile = 100;
ofn.lpstrFile = (WCHAR *) file;
ofn.lpstrFile[0]= '\0';
MessageBox(NULL, "About to GetOpenFileNameW","akre",0);
result = GetOpenFileNameW(&ofn);
MessageBox(NULL, "GetOpenFileNameW return","akre",0);
}

  1. In cygwin bash: ./testdlg.exe

What is the expected output? What do you see instead?
Expect to see a File open dialog. Instead the program is terminated with
exit code 0xc0000417 (STATUS_INVALID_CRUNTIME_PARAMETER).

What version of the product are you using? On what operating system?
1.4.4.0 Windows XP SP2

Please provide any additional information below.
Removing tortoisegit makes the problem go away.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking