Author: al
Date: 2011-03-26 22:44:58 +0100 (Sat, 26 Mar 2011)
New Revision: 3933
Modified:
trunk/librawstudio/rs-utils.c
Log:
Fixed rs_normalize_path in windows to not only return file name.
Modified: trunk/librawstudio/rs-utils.c
===================================================================
--- trunk/librawstudio/rs-utils.c 2011-03-26 18:48:08 UTC (rev 3932)
+++ trunk/librawstudio/rs-utils.c 2011-03-26 21:44:58 UTC (rev 3933)
@@ -760,7 +760,11 @@
gchar *ret = NULL;
#ifdef WIN32
- GetFullPathName(path, path_max, buffer, &ret);
+ int length = GetFullPathName(path, path_max, buffer, NULL);
+ if(length == 0){
+ g_error("Error normalizing path: %s\n", path);
+ }
+ ret = buffer;
#else
ret = realpath(path, buffer);
#endif
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit