diff --git a/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp b/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp index 496d9b65e72..448ab5fbc2d 100644 --- a/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp +++ b/reactos/tools/rbuild/backend/codeblocks/codeblocks.cpp @@ -402,9 +402,14 @@ CBBackend::_generate_cbproj ( const Module& module ) for ( i = 0; i < defs.size(); i++ ) { if ( defs[i]->value[0] ) - common_defines.push_back( defs[i]->name + "=" + defs[i]->value ); + { + const string& escaped = _replace_str(defs[i]->value, "\"","""); + common_defines.push_back( defs[i]->name + "=" + escaped ); + } else + { common_defines.push_back( defs[i]->name ); + } } /*const vector& variables = data.properties; for ( i = 0; i < variables.size(); i++ ) @@ -439,12 +444,12 @@ CBBackend::_generate_cbproj ( const Module& module ) if ( configuration.UseConfigurationInPath ) { - fprintf ( OUT, "\t\t\t\t