From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 81B0E3858C52; Tue, 10 Jan 2023 12:37:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 81B0E3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673354223; bh=IiILnaoEkqujguslEV/fT5b+q9dcnPlV9rvNrGh8ytw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SFK0JKDuuoDVLDUyADwO3o9WOlptPD+5bXuSksCuFDozYRMtG37v8A6tMuTQ6evXS 2+aSvhnJLlxMqV+RfyKVgzgA2C5lc4Vf69MsFk8IY/7APp3BdBkee4fsqr0OXJ39FU 4Ep2tCmICTMW/9HyyOwp7zPSsUc6aoKe9GV25/HA= From: "i.nixman at autistici dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/108350] Windows: invoking gcc via symlink does not work Date: Tue, 10 Jan 2023 12:37:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: i.nixman at autistici dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108350 --- Comment #4 from niXman --- > FYI `GetFinalPathNameByHandle` is known to fail on drives that are created > via `DefineDosDevice` (e.g. via the SUBST command). So I recommend using > `GetFullPathName` as a fallback if you find that `GetFinalPathNameByHandl= e` > fails. could you give me a hint, what should I use for `dwFlags` param for `GetFinalPathNameByHandle()` ? (because for me all the options are incomprehensible) because according to your github profile it looks like you are Windows developer :) https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getf= inalpathnamebyhandlea#parameters thanks!=