Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <000f01c391c8$b0b56330$12760251@ximenes> From: "Cliff Hones" To: Subject: Fw: Setup Hangs in XFree86-bin-icons.sh Date: Mon, 13 Oct 2003 21:29:22 +0100 Organization: Aonix Europe MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 This was posted to me privately (possibly by mistake). Looks as though it could help with the setup hanging investigation. [It's been quite a day for replying to sender instead of list.] -- Cliff chris wrote: > I've got to pop off now, but I thought I would express some inital > experiments... > > The problem doesn't seem to be specifically relating to cygpath.exe. I > get the same problem with the program I list at the end of the email. > The problem goes away if I remove the function dowin (note that I never > actually call the program, I just exit immediatly) > > I shall try to continue to cut down my minimal case later, but I thought > this added an interesting twist to the problem :) > > > -- Program follows -- > > #define NOCOMATTRIBUTE > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > > static int allusers_flag; > > static void > dowin (char option) > { > char *buf; > DWORD len = MAX_PATH; > WIN32_FIND_DATA w32_fd; > LPITEMIDLIST id; > HINSTANCE k32; > BOOL (*GetProfilesDirectoryAPtr) (LPSTR, LPDWORD) = 0; > > > SHGetSpecialFolderLocation (NULL, allusers_flag ? > CSIDL_COMMON_PROGRAMS : CSIDL_PROGRAMS, &id); > SHGetPathFromIDList (id, buf); > /* This if clause is a Fix for Win95 without any "All Users" */ > if (strlen (buf) == 0) > { > SHGetSpecialFolderLocation (NULL, CSIDL_PROGRAMS, &id); > SHGetPathFromIDList (id, buf); > } > } > > > > int > main (int argc, char **argv) > { > int c, o = 0; > int options_from_file_flag; > char *filename; > return 0;} > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/