Re: [Spice-devel] [phodav PATCH 2/3 v7] spice-webdavd-windows: Check for mapped shared folder

2016-05-27 Thread Lukas Venhoda
On Fri, May 27, 2016 at 4:36 PM, Marc-André Lureau wrote: > > >> Rather than the user name of the driver, it would be more reliable to > check > >> the connection details, with a function such as > >> WNetGetResourceInformation(). (I haven't looked in details if this is > the > >> right function)

Re: [Spice-devel] [phodav PATCH 2/3 v7] spice-webdavd-windows: Check for mapped shared folder

2016-05-27 Thread Marc-André Lureau
- Original Message - > Hi > On Thu, May 26, 2016 at 1:07 PM, Marc-André Lureau < mlur...@redhat.com > > wrote: > > > - Original Message - > Rather than the user name of the driver, it would be more reliable to check > the connection details, with a function such as > WNetGetReso

Re: [Spice-devel] [phodav PATCH 2/3 v7] spice-webdavd-windows: Check for mapped shared folder

2016-05-27 Thread Lukas Venhoda
Hi On Thu, May 26, 2016 at 1:07 PM, Marc-André Lureau wrote: > > - Original Message - > Rather than the user name of the driver, it would be more reliable to > check the connection details, with a function such as > WNetGetResourceInformation(). (I haven't looked in details if this is the

Re: [Spice-devel] [phodav PATCH 2/3 v7] spice-webdavd-windows: Check for mapped shared folder

2016-05-26 Thread Marc-André Lureau
- Original Message - > Hi, > > On Wed, May 25, 2016 at 03:51:43PM +0200, Lukáš Venhoda wrote: > > From: Lukas Venhoda > > > > Check whether Spice Folder is already mapped. > > If yes, don't try to map another one. > > --- > > Changes since v6: > > - Removed empty line > > > > Changes s

Re: [Spice-devel] [phodav PATCH 2/3 v7] spice-webdavd-windows: Check for mapped shared folder

2016-05-26 Thread Victor Toso
Hi, On Wed, May 25, 2016 at 03:51:43PM +0200, Lukáš Venhoda wrote: > From: Lukas Venhoda > > Check whether Spice Folder is already mapped. > If yes, don't try to map another one. > --- > Changes since v6: > - Removed empty line > > Changes since v5: > - fixed indentation > - fixed * indentaion

[Spice-devel] [phodav PATCH 2/3 v7] spice-webdavd-windows: Check for mapped shared folder

2016-05-25 Thread Lukáš Venhoda
From: Lukas Venhoda Check whether Spice Folder is already mapped. If yes, don't try to map another one. --- Changes since v6: - Removed empty line Changes since v5: - fixed indentation - fixed * indentaion Changes since v4: - Moved some variables around - Better debug message - Fixed bug,